Skip to content

Commit

Permalink
fix: releasing workflow on tag (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
figroc authored Aug 27, 2024
1 parent 5e02c29 commit 2ae600f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
workflow_dispatch:
push:
branches: ['main']
tags: ['v*']
pull_request:
branches: ['main']
workflow_call:

jobs:
build:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ on:
tags: ['v*']

jobs:
build:
uses: ./.github/workflows/main.yml
release:
runs-on: ubuntu-latest
needs: [CI]
needs: [build]
environment:
name: pypi
url: https://pypi.org/p/gitv
Expand Down

0 comments on commit 2ae600f

Please sign in to comment.