Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
eclarke12 committed Feb 1, 2021
1 parent 8b5d672 commit 500a68a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip

# create a zip file with all files required by the module to add to the release
- run: zip -r ./module.zip .* * -x@.github/zip-exclude.lst
- run: zip -r ./module.zip . -x@.github/zip-exclude.lst

# Create a release for this specific version
- name: Update Release with Files
Expand All @@ -32,8 +32,8 @@ jobs:
with:
allowUpdates: true # set this to false if you want to prevent updating existing releases
name: ${{ github.event.release.name }}
draft: true
prerelease: true
draft: false
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: './module.json, ./module.zip'
tag: ${{ github.event.release.tag_name }}
Expand All @@ -47,8 +47,8 @@ jobs:
with:
allowUpdates: true
name: Latest
draft: true
prerelease: true
draft: false
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: './module.json,./module.zip'
tag: latest
Expand Down
19 changes: 11 additions & 8 deletions .github/zip-exclude.lst
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
"dist/"
"out/"
"jsdoc/"
"node_modules/"
".gitignore"
"gulpfile.js"
"package.json"
"package-lock.json"
./dist/*
./out/*
./jsdoc/*
./node_modules/*
*.git*
*.vscode*
gulpfile.js
package.json
package-lock.json
tsconfig.json
foundry.js

0 comments on commit 500a68a

Please sign in to comment.