Skip to content

Commit

Permalink
chore(pulumi): auto-applied workflow
Browse files Browse the repository at this point in the history
this file was auto-applied from pulumi
located here:
    - https://github.com/octodns-infomaniak/.github

Signed-off-by: Ludovic Ortega <[email protected]>
  • Loading branch information
M0NsTeRRR committed Nov 15, 2024
1 parent 3812d4d commit 33670ae
Showing 1 changed file with 29 additions and 24 deletions.
53 changes: 29 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,35 @@ on:
- '*'
permissions:
contents: write

id-token: write

jobs:
changelog:
name: Create release as draft with changelog
jobs:
changelog:
name: Generate changelog
runs-on: ubuntu-latest
outputs:
release_body: ${{ steps.git-cliff.outputs.content }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate a changelog
id: git-cliff
uses: orhun/git-cliff-action@v4
with:
config: .github/cliff.toml
args: -vv --current
env:
OUTPUT: CHANGELOG.md
GITHUB_REPO: ${{ github.repository }}
create_draft_release:
name: Create release as draft
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate a changelog
uses: orhun/git-cliff-action@v4
with:
config: .github/cliff.toml
args: --current
env:
OUTPUT: CHANGELOG.md
GITHUB_REPO: ${{ github.repository }}
- name: Create release
run: gh release create ${{ github.ref_name }} -F CHANGELOG.md --draft
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
needs: [changelog]
- name: Create release as draft
run: gh release create ${{ github.ref_name }} -F ${{ needs.changelog.outputs.release_body }}--draft
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


package:
name: Package
Expand All @@ -49,11 +55,10 @@ jobs:
uv build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

publish:
publish_release:
name: Publish release
runs-on: ubuntu-latest
needs: [changelog, package]
needs: [create_draft_release, changelog, package]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 33670ae

Please sign in to comment.