Skip to content

Commit

Permalink
fix permission for token for release
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Jul 13, 2024
1 parent 0424572 commit 49f0b6c
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: Release webdav4

on:
push:
branches:
- main
release:
types:
- released
types: [published]
workflow_dispatch:

permissions: {}

Expand All @@ -16,6 +13,9 @@ env:
jobs:
build-and-publish:
timeout-minutes: 5
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -26,9 +26,6 @@ jobs:
with:
python-version: 3.8

- run: pip install build
- run: python -m build

- name: Publish to PyPI
if: github.event_name == 'release'
- run: pipx run build
- if: github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 49f0b6c

Please sign in to comment.