Skip to content

Commit

Permalink
Workflow update to publish to test.pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
JoKra1 authored Nov 28, 2023
1 parent 33e66e2 commit a3dec2e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,28 @@ jobs:
gh release upload
'${{ github.ref_name }}_${{ github.sha }}' ./wheelhouse/artifact/**
--repo '${{ github.repository }}'
publish-test:
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
needs:
- release
runs-on: ubuntu-latest

environment:
name: test-pypi
url: https://test.pypi.org/p/mssm

permissions:
id-token: write

steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
path: ./wheelhouse/

- name: Publish wheels to test-pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: ./wheelhouse/artifact
repository-url: https://test.pypi.org/legacy/

0 comments on commit a3dec2e

Please sign in to comment.