Skip to content

Commit

Permalink
Merge pull request #41 from GeoscienceAustralia/pipeline-fix
Browse files Browse the repository at this point in the history
update: publish workflow (on publish only)
  • Loading branch information
ronaldmaj authored Aug 4, 2024
2 parents a76d6b4 + f6ec17e commit 3d5c1cc
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,16 @@
name: Publish Python distributions to PyPI

on:
push:
tags:
- "*"
workflow_run:
workflows: ["python-cicd-units.yml"]
release:
types:
- completed
- published

permissions:
contents: read

jobs:
build-publish:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.event_name == 'release' }}
name: Build and publish Python distributions to PyPI
runs-on: ubuntu-latest
steps:
Expand All @@ -39,8 +35,7 @@ jobs:
pip install setuptools
pip install versionner
- name: Build a binary wheel
run: >-
python setup.py sdist bdist_wheel
run: python setup.py sdist bdist_wheel
- name: Build package
run: python -m build
- name: Publish package
Expand Down

0 comments on commit 3d5c1cc

Please sign in to comment.