Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branch:
required: false
type: string
tag:
required: false
type: string

jobs:
Test:
Expand All @@ -20,3 +23,4 @@ jobs:
with:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
ref: ${{inputs.tag}}
7 changes: 0 additions & 7 deletions .github/workflows/release_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,8 @@ concurrency:
group: release

jobs:
UnitTests:
name: Unit Tests
uses: ./.github/workflows/code_quality.yml
with:
branch: mainline

Bump:
name: Version Bump
needs: UnitTests
uses: OpenJobDescription/.github/.github/workflows/reusable_bump.yml@mainline
secrets: inherit
with:
Expand Down
54 changes: 48 additions & 6 deletions .github/workflows/release_publish.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,68 @@
name: "Release: Publish"
run-name: "Release: ${{ github.event.head_commit.message }}"
run-name: "Release: ${{ github.event.head_commit.message || inputs.tag }}"

on:
push:
branches:
- mainline
paths:
- CHANGELOG.md
workflow_dispatch:
inputs:
tag:
required: true
type: string
description: Specify a tag to re-run a release.

concurrency:
group: release

permissions:
contents: read

jobs:
TagRelease:
uses: OpenJobDescription/.github/.github/workflows/reusable_tag_release.yml@mainline
secrets: inherit
with:
tag: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || '' }}

UnitTests:
name: Unit Tests
needs: TagRelease
uses: ./.github/workflows/code_quality.yml
with:
tag: ${{ needs.TagRelease.outputs.tag }}

PreRelease:
needs: [TagRelease, UnitTests]
uses: OpenJobDescription/.github/.github/workflows/reusable_prerelease.yml@mainline
permissions:
id-token: write
contents: write
secrets: inherit
with:
tag: ${{ needs.TagRelease.outputs.tag }}

Release:
needs: [TagRelease, PreRelease]
uses: OpenJobDescription/.github/.github/workflows/reusable_release.yml@mainline
secrets: inherit
permissions:
id-token: write
contents: write
with:
tag: ${{ needs.TagRelease.outputs.tag }}

Publish:
name: Publish Release
needs: [TagRelease, Release]
uses: OpenJobDescription/.github/.github/workflows/reusable_publish_python.yml@mainline
permissions:
id-token: write
contents: write
uses: OpenJobDescription/.github/.github/workflows/reusable_publish.yml@mainline
secrets: inherit
# PyPI does not support reusable workflows yet
# # See https://github.com/pypi/warehouse/issues/11096
with:
tag: ${{ needs.TagRelease.outputs.tag }}

PublishToPyPI:
needs: Publish
runs-on: ubuntu-latest
Expand Down