diff --git a/.forgejo/workflows/ci-cd.yml b/.forgejo/workflows/ci-cd.yml index d825939..92aafd6 100644 --- a/.forgejo/workflows/ci-cd.yml +++ b/.forgejo/workflows/ci-cd.yml @@ -3,7 +3,7 @@ name: CI/CD on: [push, pull_request] jobs: - linux: + build-linux: name: Linux-x86-${{ matrix.compiler }} runs-on: node-bookworm strategy: @@ -34,15 +34,26 @@ jobs: uses: forgejo/upload-artifact@v4 with: name: Linux-x86-${{ matrix.compiler }}-${{ github.sha }}.zip - path: dist/photomode-linux.zip + path: photomode if-no-files-found: error + release: + name: Release + runs-on: node-bookworm + if: startsWith(github.ref, 'refs/tags/') + needs: build-linux + steps: + - name: Download artifacts + uses: forgejo/download-artifact@v4 + with: + path: artifacts + merge-multiple: true + - name: Release uses: actions/forgejo-release@v2 - if: startsWith(github.ref, 'refs/tags/') with: url: https://code.nullprop.sh direction: upload - release-dir: dist - tag: "${{ github.ref_name }}-${{ matrix.compiler }}" # this sucks! let me add files to same release tag from multiple jobs... + release-dir: artifacts + tag: "${{ github.ref_name }}" token: ${{ secrets.TOKEN }}