We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a91929 commit 7c9beefCopy full SHA for 7c9beef
1 file changed
.github/workflows/release.yml
@@ -0,0 +1,38 @@
1
+name: Create and Deploy Zips
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
8
+jobs:
9
+ create-zips:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - name: Checkout repository
14
+ uses: actions/checkout@v2
15
16
+ - name: Create and Publish Zips
17
+ run: |
18
+ for dir in */; do
19
+ folder_name="${dir%/}"
20
+ zip -r "$folder_name.zip" "$dir"
21
+ done
22
23
+ - name: Get the current date
24
+ id: date
25
+ run: echo "::set-output name=date::$(date +'%Y%m%d%H%M%S')"
26
27
+ - name: Create GitHub Release
28
+ id: create_release
29
+ uses: softprops/action-gh-release@v1
30
+ with:
31
+ files: |
32
+ *.zip
33
+ draft: false
34
+ prerelease: false
35
+ tag_name: ${{ steps.date.outputs.date }}
36
+ name: Latest Workshop Files
37
+ env:
38
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments