-
-
Notifications
You must be signed in to change notification settings - Fork 40
39 lines (31 loc) · 881 Bytes
/
release.yml
File metadata and controls
39 lines (31 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: release
permissions:
pull-requests: write
contents: write
pages: write
id-token: write
on:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
CARGO_INCREMENTAL: 0
jobs:
release-rust-crates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Needed to clone all the git history, which is necessary to determine
# the next version and build the changelog.
fetch-depth: 0
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: rust-lang/crates-io-auth-action@v1
id: auth
- uses: MarcoIeni/release-plz-action@v0.5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
deploy-website:
needs: release-rust-crates
uses: ./.github/workflows/deploy-website.yml