This repository was archived by the owner on Nov 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-20
lines changed Expand file tree Collapse file tree 1 file changed +7
-20
lines changed Original file line number Diff line number Diff line change 1
- name : publish package on pypi
1
+ name : Publish package
2
2
3
3
on :
4
4
release :
5
5
types : [published, edited]
6
6
7
7
jobs :
8
8
build-and-publish-test :
9
- name : Build and publish
10
9
runs-on : ubuntu-latest
11
10
steps :
12
- - uses : actions/checkout@v2
13
- - uses : actions/setup-python@v2
11
+ - uses : snok/.github/workflows/publish@main
14
12
with :
15
- python-version : 3.9
16
- - uses : snok/install-poetry@v1.1.1
17
- - name : Publish to test-pypi
18
- run : |
19
- poetry config repositories.test https://test.pypi.org/legacy/
20
- poetry config pypi-token.test ${{ secrets.TEST_PYPI_TOKEN }}
21
- poetry publish --build --no-interaction --repository test
13
+ overwrite-repository : true
14
+ repository-url : https://test.pypi.org/legacy/
15
+ token : ${{ secrets.TEST_PYPI_TOKEN }}
22
16
build-and-publish :
23
17
needs : build-and-publish-test
24
- name : Build and publish
25
18
runs-on : ubuntu-latest
26
19
steps :
27
- - uses : actions/checkout@v2
28
- - uses : actions/setup-python@v2
20
+ - uses : snok/.github/workflows/publish@main
29
21
with :
30
- python-version : 3.9
31
- - uses : snok/install-poetry@v1.1.1
32
- - name : Publish to pypi
33
- run : |
34
- poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
35
- poetry publish --build --no-interaction
22
+ token : ${{ secrets.PYPI_TOKEN }}
You can’t perform that action at this time.
0 commit comments