Skip to content

Commit 107d982

Browse files
authored
Update publish-pypi.yml
1 parent 9406927 commit 107d982

1 file changed

Lines changed: 38 additions & 4 deletions

File tree

.github/workflows/publish-pypi.yml

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,41 @@ on:
77
types: [published]
88

99
jobs:
10-
pypi:
11-
uses: MAK-Relic-Tool/Workflows/.github/workflows/publish-to-pypi.yml@main
12-
secrets:
13-
pypi-token: ${{ secrets.PYPI_API_TOKEN }}
10+
pypi-publish:
11+
name: Publish To PyPI
12+
13+
runs-on: ubuntu-latest
14+
15+
permissions:
16+
id-token: write
17+
18+
environment:
19+
name: ${{ 'pypi' }}
20+
url: https://pypi.org/p/${{ 'relic-tool-sga-core`' }}
21+
22+
23+
steps:
24+
- name: Checkout Repo
25+
uses: actions/checkout@v4
26+
with:
27+
repository: ${{ github.repository }}
28+
persist-credentials: false
29+
30+
- name: Setup Python ${{ '3.x' }}
31+
uses: actions/setup-python@v5
32+
with:
33+
python-version: ${{ '3.x' }}
34+
35+
- name: Upgrade Pip
36+
run: |
37+
python -m pip install --upgrade pip
38+
39+
- name: Install Build
40+
run: |
41+
python -m pip install build
42+
43+
- name: Build Repo
44+
run: python -m build ${{ '.' }}
45+
46+
- name: Upload to PyPI
47+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)