Skip to content

Commit c80fd35

Browse files
author
James Parkhurst
authored
Merge pull request ccpem#57 from jmp1985/main
Updated workflows
2 parents e0d5372 + d954f52 commit c80fd35

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
build:
1414

15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-latest
1616
strategy:
1717
fail-fast: false
1818
matrix:

.github/workflows/python-publish.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ jobs:
1212

1313
runs-on: ubuntu-latest
1414

15-
environment: deployment
15+
environment:
16+
name: deployment
17+
url: https://pypi.org/project/profet/
18+
19+
permissions:
20+
id-token: write
1621

1722
steps:
1823
- uses: actions/checkout@v2
@@ -26,10 +31,7 @@ jobs:
2631
run: |
2732
python -m pip install --upgrade pip
2833
pip install setuptools wheel twine
29-
- name: Build and publish
30-
env:
31-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
32-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
33-
run: |
34-
python setup.py sdist
35-
twine upload dist/*
34+
- name: Build package
35+
run: python -m build --sdist
36+
- name: Publish package
37+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)