Skip to content

Commit

Permalink
Merge pull request #95 from omicsNLP/Thomas-Rowlands-patch-1
Browse files Browse the repository at this point in the history
Update release.yml
  • Loading branch information
Thomas-Rowlands authored Dec 20, 2024
2 parents 2290832 + da79da4 commit 2fefd95
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ jobs:
test:
uses: ./.github/workflows/ci.yml

# If tests are successful, we build the wheel and push it to the release
build-wheel:
needs: test
runs-on: ubuntu-latest
Expand All @@ -18,27 +17,27 @@ jobs:
with:
python-version: '3.13'

# Check package version matches release tag
- name: Check package version matches tag
run: |
pkgver=$(python -c "import autocorpus; print(autocorpus.__version__, end='')")
pkgver=$(poetry run python -c "import autocorpus; print(autocorpus.__version__, end='')")
# NB: tag name must be prefixed by "v" (the default for GitHub Releases)
test v$pkgver = ${{ github.ref_name }}
# Build package with Poetry
- name: Build package
run: poetry build

# Upload files as test artifact (to be retrieved later)
# Upload files as test artifact
- uses: actions/upload-artifact@v4
with:
path: dist/*

# Publish files as release artifacts
# Publish files as release artifacts
- uses: softprops/action-gh-release@v2
with:
files: dist/*

# If all goes well, publish to PyPI
publish-pypi:
needs: build-wheel
name: Publish to PyPI
Expand Down

0 comments on commit 2fefd95

Please sign in to comment.