From d6b9366aa65d786117b6f4a38d720bef3e7ce57a Mon Sep 17 00:00:00 2001 From: Fern Zapata Date: Fri, 7 Jun 2024 05:34:34 -0600 Subject: [PATCH] CI: Automatically create releases on tags Maybe, hopefully. Isn't there a less annoying way of testing actions? --- .github/workflows/ci.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e7d6d34..c4cbbc7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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'