WIP: d-theme #6
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
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 }} |