Skip to content

ci: add artifact verification and simplify release workflow (#31) #11

ci: add artifact verification and simplify release workflow (#31)

ci: add artifact verification and simplify release workflow (#31) #11

Workflow file for this run

---

Check failure on line 1 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 32, Col: 9): Job 'release' depends on unknown job 'build'., (Line: 52, Col: 9): Job 'post-release' depends on job 'release' which creates a cycle in the dependency graph.
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 }}