Skip to content
Merged
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
24 changes: 3 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,24 +99,6 @@ jobs:
with:
packages-dir: dist/

draft-release:
name: Draft a release or/and check the release
needs: [ determine-package ]
runs-on: ubuntu-slim
if: ${{ startsWith(github.ref, 'refs/tags/') && github.event_name != 'workflow_dispatch' }}
permissions:
contents: write
env:
TAG: ${{ needs.determine-package.outputs.package }}/${{ needs.determine-package.outputs.version }}
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v6
- name: Draft a release.
run: gh release create ${TAG} --draft --title ${TAG} # Default title is not always the tag name.
continue-on-error: true # Release create can fail if there is an existing release.
- name: Check the release.
run: gh release view ${TAG} # This command should not fail if the release already exists or was created by the previous step.

docs:
name: Build and publish docs
needs: [ determine-package, publish ]
Expand All @@ -130,7 +112,7 @@ jobs:

assets:
name: Upload docs
needs: [ docs, determine-package, draft-release ]
needs: [ docs, determine-package ]
runs-on: ubuntu-24.04
permissions:
contents: write
Expand All @@ -154,7 +136,7 @@ jobs:

notes:
name: Update notes
needs: [ determine-package, draft-release ]
needs: [ determine-package ]
runs-on: ubuntu-slim
if: ${{ always() && needs.determine-package.outputs.lastversion }}
permissions:
Expand Down Expand Up @@ -203,4 +185,4 @@ jobs:
if: ${{ github.event_name != 'workflow_dispatch' }}
env:
GH_TOKEN: ${{ github.token }}
run: gh release edit ${PACKAGE}/${VERSION} --notes-file "new-release-note.md" --draft=false # Publish the release with the new note.
run: gh release edit ${PACKAGE}/${VERSION} --notes-file "new-release-note.md"