forked from GitHub/bdwgc-rust
Bump version (#465)
This commit is contained in:
10
.github/workflows/release.yaml
vendored
10
.github/workflows/release.yaml
vendored
@@ -9,6 +9,8 @@ concurrency:
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
jobs:
|
||||
release:
|
||||
permissions:
|
||||
id-token: write
|
||||
runs-on: ubuntu-latest
|
||||
environment: ${{ github.ref == 'refs/heads/main' && 'release' || '' }}
|
||||
steps:
|
||||
@@ -17,7 +19,9 @@ jobs:
|
||||
submodules: true
|
||||
- uses: raviqqe/cargo-cache@v1
|
||||
- run: cargo install cargo-workspaces
|
||||
- run: cargo workspaces publish -y --from-git --no-verify
|
||||
env:
|
||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||
- uses: rust-lang/crates-io-auth-action@v1
|
||||
id: auth
|
||||
if: github.ref == 'refs/heads/main'
|
||||
- run: cargo workspaces publish -y --from-git ${{ github.ref != 'refs/heads/main' && '--dry-run' || '' }}
|
||||
env:
|
||||
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
|
||||
|
||||
Reference in New Issue
Block a user