Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/calculate_checksum.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Calculate Checksum

on:
workflow_run:
workflows: ["Cut Release and Create Source Tarball"]
types:
- completed

jobs:
calculate-checksum:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'

steps:
- name: Extract version
id: get_version
run: |
TAG="${{ github.event.workflow_run.head_branch }}"
echo "VERSION=${TAG#offscreen-}" >> $GITHUB_ENV

- name: Download tarball artifact
uses: actions/download-artifact@v11
with:
name: offscreen-${{ env.VERSION }}.tar.gz
run-id: ${{ github.event.workflow_run.id }}

- name: Calculate SHA256 checksum
run: sha256sum offscreen-${{ env.VERSION }}.tar.gz > offscreen-${{ env.VERSION }}.sha256

- name: Upload checksum artifact
uses: actions/upload-artifact@v4
with:
name: offscreen-${{ env.VERSION }}.sha256
path: offscreen-${{ env.VERSION }}.sha256