Skip to content

Commit

Permalink
ci: 🎡 add checkout job and concurrency to publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
darvid committed Mar 10, 2024
1 parent 0d89e3d commit 7fa6034
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ on:
workflow_dispatch:

jobs:
verify_branch:
publish:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && github.event.pull_request.head.ref == ${{ vars.RELEASE_PR_BRANCH || 'create-pull-request/patch' }}
concurrency: publish
outputs:
should-publish:
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Publish to GitHub Releases
if: github.event_name == 'workflow_dispatch'
uses: python-semantic-release/upload-to-gh-release@main
Expand Down

0 comments on commit 7fa6034

Please sign in to comment.