diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 21e7300..b8c1f2a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -16,7 +16,7 @@ jobs: name: Build and Generate Artifact permissions: id-token: write - contents: read + contents: write attestations: write steps: - name: Checkout @@ -61,6 +61,21 @@ jobs: name: screenly-chrome-extension path: artifacts/dist + - name: Prepare Release + if: startsWith(github.ref, 'refs/tags/') + run: | + cp \ + ${{ github.workspace }}/screenly-chrome-extension.zip \ + ${{ github.workspace }}/screenly-chrome-extension-${{ github.ref_name }}.zip + + - name: Create Release + if: startsWith(github.ref, 'refs/tags/') + uses: ncipollo/release-action@v1.11.2 + with: + allowUpdates: true + prerelease: true + artifacts: "screenly-chrome-extension-${{ github.ref_name }}.zip" + generate-sbom: runs-on: ubuntu-latest name: Generate SBOM