File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " 📦 Publish"
2+
3+ on :
4+ push :
5+ branches :
6+ - " test"
7+
8+ workflow_dispatch : null
9+
10+ env :
11+ PYPI_TEST_REPOSITORY : " https://test.pypi.org/legacy/"
12+
13+ jobs :
14+ tag :
15+ name : " Tag"
16+ permissions :
17+ contents : " write"
18+ uses : " kurtmckee/github-workflows/.github/workflows/create-tag-and-release.yaml@build-packages-for-publication"
19+
20+ build :
21+ name : " Build"
22+ needs :
23+ - " tag"
24+ permissions :
25+ contents : " read"
26+ uses : " kurtmckee/github-workflows/.github/workflows/build-python-package.yaml@build-packages-for-publication"
27+
28+ publish :
29+ name : " Publish"
30+ needs :
31+ - " build"
32+ runs-on : " ubuntu-slim"
33+ environment : " PyPI (Test)"
34+ permissions :
35+ id-token : " write"
36+ steps :
37+ - name : " Download the built packages"
38+ uses : " actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131" # v7.0.0
39+ with :
40+ artifact-ids : " ${{ needs.build.outputs.artifact-id }}"
41+ path : " ${{ needs.build.outputs.packages-path }}"
42+
43+ - name : " Publish package distributions to PyPI"
44+ uses : " pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e" # v1.13.0
45+ with :
46+ repository-url : " ${{ env.PYPI_TEST_REPOSITORY }}"
47+ packages-dir : " ${{ needs.build.outputs.packages-path }}"
You can’t perform that action at this time.
0 commit comments