Skip to content

Commit

Permalink
Merge pull request #48 from jupyterhub/trusted-take-2
Browse files Browse the repository at this point in the history
Fix permissions required for trusted workflow
  • Loading branch information
consideRatio committed Jul 17, 2023
2 parents 4d1779c + f117ddc commit a1341a3
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# This is a GitHub workflow defining a set of jobs with a set of steps.
# ref: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
# ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
#
name: Release

# always build releases (to make sure wheel-building works)
# but only publish to PyPI on tags
# Always tests wheel building, but only publish to PyPI on pushed tags.
on:
pull_request:
paths-ignore:
Expand All @@ -25,11 +24,19 @@ on:
jobs:
build-release:
runs-on: ubuntu-22.04
permissions:
# id-token=write is required for pypa/gh-action-pypi-publish, and the PyPI
# project needs to be configured to trust this workflow.
#
# ref: https://github.com/jupyterhub/team-compass/issues/648
#
id-token: write

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"

- name: install build package
run: |
Expand Down

0 comments on commit a1341a3

Please sign in to comment.