Skip to content

Commit

Permalink
CI: Automatically create releases on tags
Browse files Browse the repository at this point in the history
Maybe, hopefully. Isn't there a less annoying way of testing actions?
  • Loading branch information
fernzi committed Jun 7, 2024
1 parent a9f0554 commit d6b9366
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,26 @@ jobs:
release:
name: Create Release
runs-on: ubuntu-latest
permissions:
contents: write
needs:
- build

if: startsWith(github.ref, 'refs/tags/')

steps:
- uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Inspect Artifacts
run: ls -lFR
run: |
ls -lFR
- name: Package
run: |
for d in */*; do
zip -jr "${d//\/TTF/}-${GITHUB_REF_NAME#v}.zip" "$d"
done
- name: Release
uses: softprops/action-gh-release@v2
with:
files: '*.zip'

0 comments on commit d6b9366

Please sign in to comment.