Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mjt320 authored Feb 8, 2024
1 parent 15502b6 commit 7ed5085
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@ on:
# - "*"

jobs:
build:
name: Build distribution 📦
check_version:
name: Check whether version has been updated cf. pypi
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

#- uses: actions/checkout@v3

- name: Check pypi versions
- uses: actions/checkout@v3
- name: compare local vs. pypi version
uses: maybe-hello-world/pyproject-check-version@v4
id: versioncheck
with:
Expand All @@ -29,6 +26,14 @@ jobs:
echo "Local version: ${{ steps.versioncheck.outputs.local_version }}" # e.g., 0.1.1
echo "Public version: ${{ steps.versioncheck.outputs.public_version }}" # e.g., 0.1.0
build:
name: Build distribution 📦
runs-on: ubuntu-latest
if: needs.check_version.versioncheck.outputs.local_version_is_higher

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit 7ed5085

Please sign in to comment.