Skip to content

Commit

Permalink
tweaking publish workflow still
Browse files Browse the repository at this point in the history
  • Loading branch information
gwf committed Oct 4, 2023
1 parent 53a9b1b commit cad3f78
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: publish

on:
push:
branches:
- main
on: [push]

jobs:
build-n-publish:
name: Build and publish Python dist to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
Expand All @@ -22,7 +20,6 @@ jobs:
run: |
python -m build
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: gwf
Expand Down

0 comments on commit cad3f78

Please sign in to comment.