v1.5.4 #14
Workflow file for this run
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
| # Project: hyperi-rustlib | |
| # File: .github/workflows/publish.yml | |
| # Purpose: Rust Publish pipeline - Build, Publish to Cargo registry | |
| # License: FSL-1.1-ALv2 | |
| # Copyright: (c) 2026 HYPERI PTY LIMITED | |
| # | |
| # Generated by: HyperI CI attach.sh (rust) | |
| # CI Repo: https://github.com/hyperi-io/ci | |
| # | |
| # IMPORTANT: Before triggering CI, always run a local build first: | |
| # cargo fmt --check && cargo clippy --all-features && cargo test --all-features | |
| name: Publish | |
| on: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| jobs: | |
| detect: | |
| name: Detect Config | |
| runs-on: ${{ vars.GH_RUNNER_DEFAULT || 'ubuntu-latest' }} | |
| outputs: | |
| rust_targets: ${{ steps.config.outputs.rust_targets }} | |
| rust_features: ${{ steps.config.outputs.rust_features }} | |
| steps: | |
| - name: Generate token | |
| id: token | |
| uses: actions/create-github-app-token@v1 | |
| with: | |
| app-id: ${{ secrets.GH_APP_ID }} | |
| private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} | |
| owner: ${{ github.repository_owner }} | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| token: ${{ steps.token.outputs.token }} | |
| - uses: ./ci/actions/setup/detect-build-config | |
| id: config | |
| with: | |
| scripts-path: ./ci/scripts | |
| build: | |
| name: Build | |
| needs: detect | |
| runs-on: ${{ vars.GH_RUNNER_DEFAULT || 'ubuntu-latest' }} | |
| steps: | |
| - name: Generate token | |
| id: token | |
| uses: actions/create-github-app-token@v1 | |
| with: | |
| app-id: ${{ secrets.GH_APP_ID }} | |
| private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} | |
| owner: ${{ github.repository_owner }} | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| token: ${{ steps.token.outputs.token }} | |
| - uses: ./ci/actions/jobs/build | |
| with: | |
| language: rust | |
| artifactory-url: ${{ vars.ARTIFACTORY_CARGO_URL }} | |
| artifactory-username: ${{ secrets.ARTIFACTORY_CI_USERNAME }} | |
| artifactory-password: ${{ secrets.ARTIFACTORY_CI_TOKEN }} | |
| rust-targets: ${{ needs.detect.outputs.rust_targets }} | |
| rust-features: ${{ needs.detect.outputs.rust_features }} | |
| publish: | |
| name: Publish | |
| needs: [detect, build] | |
| runs-on: ${{ vars.GH_RUNNER_DEFAULT || 'ubuntu-latest' }} | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Generate token | |
| id: token | |
| uses: actions/create-github-app-token@v1 | |
| with: | |
| app-id: ${{ secrets.GH_APP_ID }} | |
| private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} | |
| owner: ${{ github.repository_owner }} | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| token: ${{ steps.token.outputs.token }} | |
| - uses: ./ci/actions/jobs/publish | |
| with: | |
| language: rust | |
| artifactory-url: ${{ vars.ARTIFACTORY_CARGO_URL }} | |
| artifactory-username: ${{ secrets.ARTIFACTORY_CI_USERNAME }} | |
| artifactory-password: ${{ secrets.ARTIFACTORY_CI_TOKEN }} | |
| linear-api-key: ${{ secrets.LINEAR_API_KEY }} | |
| linear-prefixes: ${{ vars.LINEAR_PREFIXES || 'DFE' }} |