Skip to content

Commit

Permalink
Merge pull request #100 from KohlbacherLab/develop
Browse files Browse the repository at this point in the history
Update pypi-publish.yml
  • Loading branch information
jonasscheid authored Jan 11, 2024
2 parents c03599e + 71660b8 commit 5a3a2c8
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ jobs:
name: Publish tagged release on PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install utilities
run: sudo apt-get install -y mmv
- uses: actions/checkout@v4
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
Expand All @@ -30,18 +28,12 @@ jobs:
--wheel
--outdir dist/
.
- name: Create timestamp
run: echo timestamp=$(date +%s) >> $GITHUB_ENV
- name: Rename built files to include timestamp
run: |
mmv -v dist/'*.*.*-*' dist/'#1.#2.#3-'$timestamp'-#4'
mmv -v dist/'*.tar.gz' dist/'#1-'$timestamp.tar.gz
- name: Publish distribution package to PyPI (test)
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution package to PyPI (production)
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 5a3a2c8

Please sign in to comment.