Skip to content

Commit

Permalink
Move permissions to jobs level
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-dxw committed Aug 21, 2024
1 parent 351319b commit 3d2c244
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- v*

jobs:
permissions:
id-token: write
build-n-publish:
name: Build and publish Python distributions to PyPI
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,5 @@ To create a release:
7. Tag the merge commit on `main` with `v{major}.{minor}.{patch}` and push the tag
8. Create a release in [Github releases](https://github.com/nationalarchives/ds-caselaw-custom-api-client/releases)
using the created tag

If the release fails to push to PyPI, you can delete the tag with `git pull`, `git push --delete origin v1.2.3` and try again.

0 comments on commit 3d2c244

Please sign in to comment.