Skip to content

Commit

Permalink
only publish tags
Browse files Browse the repository at this point in the history
only publish on tags

Update publish.yml

Update publish.yml

Update publish.yml

Update publish.yml

Update publish.yml
  • Loading branch information
dubstar-04 committed Sep 1, 2023
1 parent 10b6f48 commit a34b211
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
name: Build and upload to PyPI

on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- liblathe-nextgen
release:
types:
- published
tags:
- 'v*'

jobs:
build_wheels:
Expand Down Expand Up @@ -51,11 +45,6 @@ jobs:
url: https://pypi.org/p/liblathe
permissions:
id-token: write
# if: github.event_name == 'release' && github.event.action == 'published'
#github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
#github.event_name == 'release' && github.event.action == 'published'
# or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this)
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit a34b211

Please sign in to comment.