Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Add write permission to id-token
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Apr 22, 2024
1 parent 2457bb4 commit decd3aa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/Pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,23 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
# Setup steps
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.9'

- name: Checkout repo
uses: actions/checkout@v3

- name: Install dependencies
run: pip install wheel

- name: Build package
run: python setup.py sdist bdist_wheel
# Do the publish

- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit decd3aa

Please sign in to comment.