fix github actions write permissions
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user