Publish Development Pre-release #3
This file contains hidden or 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: Publish Development Pre-release | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| ref: | |
| description: "Branch or commit to pre-release (recommended: develop)" | |
| required: true | |
| type: string | |
| concurrency: | |
| group: prerelease-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-artifacts: | |
| uses: ./.github/workflows/_build-platform-artifacts.yml | |
| with: | |
| source_ref: ${{ github.event.inputs.ref }} | |
| artifact_name_prefix: corese-gui-prerelease | |
| publish-prerelease: | |
| name: Publish or update dev-prerelease | |
| needs: build-artifacts | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Resolve source commit | |
| id: source-commit | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.inputs.ref }} | |
| fetch-depth: 1 | |
| - name: Capture source commit SHA | |
| id: source-sha | |
| shell: bash | |
| run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" | |
| - name: Download all pre-release artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| pattern: corese-gui-prerelease-* | |
| merge-multiple: true | |
| path: build/prerelease-assets | |
| - name: Generate build timestamp | |
| id: timestamp | |
| run: | | |
| echo "timestamp=$(date -u '+%Y-%m-%d %H:%M:%S UTC')" >> "$GITHUB_OUTPUT" | |
| - name: Generate checksums | |
| run: | | |
| cd build/prerelease-assets | |
| find . -type f -print0 | sort -z | xargs -0 sha256sum > SHA256SUMS.txt | |
| - name: Publish single rolling pre-release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| artifacts: "build/prerelease-assets/**/*" | |
| tag: dev-prerelease | |
| name: Development Pre-release | |
| body: | | |
| Latest unsigned multi-platform build from the selected source ref. | |
| macOS packages are unsigned. If blocked by Gatekeeper, right-click -> Open. | |
| Last updated: ${{ steps.timestamp.outputs.timestamp }} | |
| Source ref: `${{ github.event.inputs.ref }}` | |
| Commit: `${{ steps.source-sha.outputs.sha }}` | |
| prerelease: true | |
| allowUpdates: true | |
| replacesArtifacts: true |