Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Updates publication CI
Browse files Browse the repository at this point in the history
  • Loading branch information
djperrefort committed Oct 2, 2023
1 parent 580e27f commit a7a5194
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/PackagePublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
environment: publish-pypi

steps:
- name: Checkout source
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -41,23 +44,20 @@ jobs:
with:
virtualenvs-create: false

- name: Checkout source
uses: actions/checkout@v3

# Get the new package version from the release tag
# Release tags are expected to start with "refs/tags/v", so the first 11 characters are stripped
# Git release tags are expected to start with "refs/tags/v"
- name: Set package version
run: |
release_tag=${{github.ref}}
poetry version "${release_tag:11}"
poetry version "${release_tag#refs/tags/v}"
- name: Build package
run: poetry build -v

- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
print-hash: true
repository-url: ${{ matrix.host }}
user: ${{ secrets.REPO_USER }}
password: ${{ secrets.REPO_PASSWORD }}

0 comments on commit a7a5194

Please sign in to comment.