Skip to content

Commit

Permalink
ci(fix): run publish release workflow manually
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoninoBonanno committed Jan 22, 2024
1 parent d9b18ec commit 4cc164c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,15 @@
name: Publish release

on:
workflow_run:
workflows: ["Run tests"]
branches:
- main
types:
- completed
workflow_dispatch:

permissions:
contents: read # for checkout

jobs:
release:
# Run job only on main branch
if: github.event_name != 'workflow_dispatch' || github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
Expand Down

0 comments on commit 4cc164c

Please sign in to comment.