File tree Expand file tree Collapse file tree 2 files changed +17
-19
lines changed Expand file tree Collapse file tree 2 files changed +17
-19
lines changed Original file line number Diff line number Diff line change 1
- name : Supervision Test Releases to PyPi
1
+ name : Publish Supervision Pre- Releases to PyPI and TestPyPI
2
2
on :
3
3
push :
4
4
tags :
9
9
workflow_dispatch :
10
10
11
11
jobs :
12
- build-n -publish :
12
+ build-and -publish-pre-release-pypi :
13
13
name : Build and publish to PyPI
14
14
runs-on : ubuntu-latest
15
+ permissions :
16
+ id-token : write
15
17
strategy :
16
18
matrix :
17
19
python-version : ["3.10"]
@@ -30,14 +32,11 @@ jobs:
30
32
python -m pip install --upgrade build twine
31
33
python -m build
32
34
twine check --strict dist/*
33
- - name : π Publish distribution to PyPI
34
- uses : pypa/gh-action-pypi-publish@release/v1
35
- with :
36
- user : ${{ secrets.PYPI_USERNAME }}
37
- password : ${{ secrets.PYPI_PASSWORD }}
35
+
36
+ - name : π Publish to PyPi
37
+ uses : pypa/gh-action-pypi-publish@release/v1.10
38
+
38
39
- name : π Publish to Test-PyPi
39
- uses : pypa/gh-action-pypi-publish@release/v1
40
+ uses : pypa/gh-action-pypi-publish@release/v1.10
40
41
with :
41
42
repository-url : https://test.pypi.org/legacy/
42
- user : ${{ secrets.PYPI_TEST_USERNAME }}
43
- password : ${{ secrets.PYPI_TEST_PASSWORD }}
Original file line number Diff line number Diff line change 1
- name : Supervision Releases to PyPi
1
+ name : Publish Supervision Releases to PyPI and TestPyPI
2
2
on :
3
3
push :
4
4
tags :
7
7
workflow_dispatch :
8
8
9
9
jobs :
10
- build :
10
+ build-and-publish-pre-release :
11
11
runs-on : ubuntu-latest
12
+ permissions :
13
+ id-token : write
12
14
strategy :
13
15
matrix :
14
16
python-version : ["3.10"]
@@ -27,14 +29,11 @@ jobs:
27
29
python -m pip install --upgrade build twine
28
30
python -m build
29
31
twine check --strict dist/*
32
+
30
33
- name : π Publish to PyPi
31
- uses : pypa/gh-action-pypi-publish@release/v1
32
- with :
33
- user : ${{ secrets.PYPI_USERNAME }}
34
- password : ${{ secrets.PYPI_PASSWORD }}
34
+ uses : pypa/gh-action-pypi-publish@release/v1.10
35
+
35
36
- name : π Publish to Test-PyPi
36
- uses : pypa/gh-action-pypi-publish@release/v1
37
+ uses : pypa/gh-action-pypi-publish@release/v1.10
37
38
with :
38
39
repository-url : https://test.pypi.org/legacy/
39
- user : ${{ secrets.PYPI_TEST_USERNAME }}
40
- password : ${{ secrets.PYPI_TEST_PASSWORD }}
You canβt perform that action at this time.
0 commit comments