-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflows for creating archives and release
- Loading branch information
1 parent
7a91929
commit 7c9beef
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Create and Deploy Zips | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
create-zips: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Create and Publish Zips | ||
run: | | ||
for dir in */; do | ||
folder_name="${dir%/}" | ||
zip -r "$folder_name.zip" "$dir" | ||
done | ||
- name: Get the current date | ||
id: date | ||
run: echo "::set-output name=date::$(date +'%Y%m%d%H%M%S')" | ||
|
||
- name: Create GitHub Release | ||
id: create_release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: | | ||
*.zip | ||
draft: false | ||
prerelease: false | ||
tag_name: ${{ steps.date.outputs.date }} | ||
name: Latest Workshop Files | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |