File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
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,12 +32,11 @@ jobs:
30
32
python -m pip install --upgrade build twine
31
33
python -m build
32
34
twine check --strict dist/*
35
+
33
36
- name : π Publish to PyPi
34
37
uses : pypa/gh-action-pypi-publish@release/v1.10
35
- with :
36
- password : ${{ secrets.PYPI_API_TOKEN }}
38
+
37
39
- name : π Publish to Test-PyPi
38
40
uses : pypa/gh-action-pypi-publish@release/v1.10
39
41
with :
40
42
repository-url : https://test.pypi.org/legacy/
41
- password : ${{ secrets.TEST_PYPI_API_TOKEN }}
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,12 +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
34
uses : pypa/gh-action-pypi-publish@release/v1.10
32
- with :
33
- password : ${{ secrets.PYPI_API_TOKEN }}
35
+
34
36
- name : π Publish to Test-PyPi
35
37
uses : pypa/gh-action-pypi-publish@release/v1.10
36
38
with :
37
39
repository-url : https://test.pypi.org/legacy/
38
- password : ${{ secrets.TEST_PYPI_API_TOKEN }}
You canβt perform that action at this time.
0 commit comments