fix(ci): release workflow for preview releases and pypi publish #12491
Workflow file for this run
This file contains 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
--- | |
# yamllint disable rule:truthy | |
name: Release Note | |
on: | |
workflow_dispatch: | |
push: | |
# branches to consider in the event; optional, defaults to all | |
branches: | |
- develop | |
- stable | |
# pull_request event is required only for autolabeler | |
pull_request: | |
types: [opened, reopened, synchronize] | |
permissions: | |
contents: read | |
jobs: | |
update_infrahub_release_draft: | |
permissions: | |
contents: write | |
pull-requests: read | |
runs-on: ubuntu-latest | |
steps: | |
- uses: release-drafter/release-drafter@v6 | |
with: | |
config-name: infrahub-release-drafter.yml | |
disable-autolabeler: true | |
name: infrahub-draft | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |