ci: add artifact verification and simplify release workflow (#31) #11
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
| --- | ||
|
Check failure on line 1 in .github/workflows/release.yml
|
||
| name: Release | ||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: "The next iteration version. This workflow will automatically perform the required version bumps" | ||
| required: true | ||
| permissions: | ||
| contents: read | ||
| env: | ||
| # Ref: https://docs.astral.sh/uv/concepts/projects/sync/#checking-if-the-lockfile-is-up-to-date | ||
| UV_FROZEN: "true" | ||
| concurrency: | ||
| group: ${{ github.workflow }} | ||
| jobs: | ||
| ci: | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| uses: ./.github/workflows/ci.yml | ||
| secrets: inherit | ||
| release: | ||
| runs-on: ubuntu-latest | ||
| needs: | ||
| - build | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - uses: actions/download-artifact@v8 | ||
| with: | ||
| merge-multiple: true | ||
| - name: Install environment | ||
| uses: ./.github/workflows/env-install | ||
| - name: Release | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: uv run poe release | ||
| post-release: | ||
| needs: | ||
| - release | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Setup github actions bot | ||
| uses: ./.github/workflows/setup-github-bot | ||
| - name: Install environment | ||
| uses: ./.github/workflows/env-install | ||
| - name: Run post-release step | ||
| run: uv run poe release:post | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| NEXT_VERSION: ${{ inputs.version }} | ||