Skip to content

Commit 7c9beef

Browse files
committed
workflows for creating archives and release
1 parent 7a91929 commit 7c9beef

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)