Create prerelease on tag #72
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create prerelease on tag | |
on: | |
push: | |
tags: | |
- "*.*.*.*" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
actions: write | |
contents: write | |
outputs: | |
hashes: ${{ steps.hash.outputs.hashes }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: "package.json" | |
- name: Install dependencies | |
run: npm ci | |
- name: Build Legal | |
run: npm run license-report:html | |
- name: Build | |
run: npm run-script build -- --all --version ${{ github.ref_name }} | |
shell: bash | |
- name: Generate hashes | |
id: hash | |
run: | | |
cd builds | |
echo "hashes=$(sha256sum * | base64 -w0)" >> "$GITHUB_OUTPUT" | |
- name: Release | |
id: release | |
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # pin@v2 | |
with: | |
generate_release_notes: true | |
prerelease: true | |
files: builds/* | |
- name: Dispatch publish-chrome-development | |
uses: aurelien-baudet/workflow-dispatch@3133c5d135c7dbe4be4f9793872b6ef331b53bc7 # pin@v2 | |
with: | |
workflow: publish-chrome-development | |
token: ${{ secrets.GITHUB_TOKEN }} | |
wait-for-completion: false | |
- name: Dispatch publish-firefox-development | |
uses: aurelien-baudet/workflow-dispatch@3133c5d135c7dbe4be4f9793872b6ef331b53bc7 # pin@v2 | |
with: | |
workflow: publish-firefox-development | |
token: ${{ secrets.GITHUB_TOKEN }} | |
wait-for-completion: false | |
inputs: '{ "upload_url": "${{ steps.release.outputs.upload_url }}" }' | |
provenance: | |
needs: [build] | |
permissions: | |
actions: read # To read the workflow path. | |
id-token: write # To sign the provenance. | |
contents: write # To add assets to a release. | |
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected] | |
with: | |
base64-subjects: "${{ needs.build.outputs.hashes }}" | |
upload-assets: true |