fix(ci): add global-credential-providers for cargo auth #13
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: hs-rustlib | |
| # File: .github/workflows/semantic-release.yml | |
| # Purpose: Create version tags using semantic-release | |
| # License: LicenseRef-HyperSec-EULA | |
| # Copyright: (c) 2025 HyperSec Pty Ltd | |
| # | |
| # Generated by: HyperSec CI attach.sh | |
| # CI Repo: https://github.com/hypersec-io/ci | |
| name: Semantic Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| release: | |
| name: Create Version and Tag | |
| runs-on: ${{ vars.GH_RUNNER_DEFAULT || 'ubuntu-latest' }} | |
| steps: | |
| - name: Generate GitHub App Token | |
| id: app-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 }} | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| submodules: recursive | |
| token: ${{ steps.app-token.outputs.token }} | |
| - name: Run semantic-release | |
| uses: ./ci/actions/release/semantic | |
| with: | |
| github-token: ${{ steps.app-token.outputs.token }} |