Skip to content

Commit

Permalink
improvment workflow for release
Browse files Browse the repository at this point in the history
  • Loading branch information
cesxhin committed Sep 29, 2024
1 parent 79321db commit 9654b89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
push:
branches:
- main
release:
types: [published]

jobs:
test:
Expand Down Expand Up @@ -34,7 +36,7 @@ jobs:
check-version:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main' && startsWith(github.ref, 'refs/tags/')
if: github.ref == 'refs/heads/main' && github.event_name == 'release' && github.event.action == 'published'
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down

0 comments on commit 9654b89

Please sign in to comment.