Skip to content

Commit eb161ed

Browse files
authored
second attempt at fixing pypi publish (#7)
1 parent 944c736 commit eb161ed

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@ name: Publish library
22

33
on:
44
push:
5-
branches:
6-
- main
75
tags:
86
# Don't try to be smart about PEP 440 compliance,
97
# see https://www.python.org/dev/peps/pep-0440/#appendix-b-parsing-version-strings-with-regular-expressions
108
- v*
119

1210
jobs:
1311
publish:
14-
environment: publish
12+
environment:
13+
name: publish
14+
url: https://pypi.org/p/arviz-stats
1515
runs-on: ubuntu-latest
16+
permissions:
17+
id-token: write
1618
steps:
1719
- uses: actions/checkout@v3
1820
- name: Set up Python
@@ -26,6 +28,3 @@ jobs:
2628
- name: Publish to PyPI
2729
uses: pypa/gh-action-pypi-publish@release/v1
2830
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
29-
with:
30-
user: __token__
31-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)