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'