give permissions

This commit is contained in:
Waylon Walker 2023-06-14 20:42:32 -05:00
parent 16a7f0f0d4
commit 111ccd8f18
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4

View file

@ -7,6 +7,8 @@ on:
jobs:
setup:
runs-on: ubuntu-latest
permissions:
contents: write # release changes require contents write
steps:
- uses: actions/checkout@v3
# - name: remove last latest release
@ -26,13 +28,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload latest dist/
release:
depends-on: setup
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
permissions:
contents: write # release changes require contents write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4