Skip to content

Commit

Permalink
Merge pull request #30 from Screenly/fix-27
Browse files Browse the repository at this point in the history
chore(ci): add a workflow step for publishing a new release
  • Loading branch information
vpetersson authored Nov 14, 2024
2 parents b2fb1b6 + 0907255 commit c8b49c2
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Build and Generate Artifact
permissions:
id-token: write
contents: read
contents: write
attestations: write
steps:
- name: Checkout
Expand Down Expand Up @@ -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/[email protected]
with:
allowUpdates: true
prerelease: true
artifacts: "screenly-chrome-extension-${{ github.ref_name }}.zip"

generate-sbom:
runs-on: ubuntu-latest
name: Generate SBOM
Expand Down

0 comments on commit c8b49c2

Please sign in to comment.