fix github actions write permissions

This commit is contained in:
alice pellerin
2026-05-01 15:38:30 -05:00
parent cc56ece472
commit 9930adb7b1
+6 -3
View File
@@ -6,17 +6,20 @@ on:
tags: tags:
- "v*" - "v*"
permissions:
contents: write
jobs: jobs:
publish: publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: # permissions:
id-token: write # Required for OIDC token exchange # id-token: write # Required for OIDC token exchange
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
- name: check version - name: check version
# cut off the v part of the tag to only search for the number # cut off the v part of the tag to only search for the number
run: grep -q "$(echo "${{ github.ref_name }}" | cut -c2-)" Cargo.toml run: grep -q "$(echo "${{ github.ref_name }}" | cut -c2-)" Cargo.toml
- run: cargo test - run: cargo test --release
- run: cargo build --release --locked - run: cargo build --release --locked
- name: package - name: package
# TODO: include completions/man page # TODO: include completions/man page