Repository navigation
53 lines (48 loc) · 1.71 KB
/
Copy pathrelease-plz.yml
File metadata and controls
53 lines (48 loc) · 1.71 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: release-plz
permissions: {}
on:
workflow_dispatch: {}
push:
branches:
- main
- release-plz
# A release in flight must finish. Default queueing keeps one pending run and replaces it with
# the newest; release-plz acts on the SHA it checked out, so queued stale runs would be wasteful.
concurrency:
group: release-plz
cancel-in-progress: false
env:
MBX_DISABLE: "1"
DRY_RUN: 0
jobs:
release-plz:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
id-token: write # crates.io trusted publishing
# Publishes three crates and may poll the crates.io index for ~10 minutes after each, so
# a short limit could stop a release after the tag is pushed but before every crate is out.
timeout-minutes: 120
steps:
# release-plz pushes tags and the release branch via `git push`, which needs the scoped
# FNOX_GH_TOKEN persisted in the git config.
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
token: ${{ secrets.FNOX_GH_TOKEN }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libdbus-1-dev libudev-dev pkg-config
- uses: jdx/mise-action@08ae2a091c038e1e05ec6f5115dc5c69d5a2a6b8 # v5.1.2
with:
experimental: true
cache: false
- run: mise trust --all
- uses: rust-lang/crates-io-auth-action@c6f97d42243bad5fab37ca0427f495c86d5b1a18 # v1.0.5
id: crates-io-auth
- run: mise run release-plz
env:
GITHUB_TOKEN: ${{ secrets.FNOX_GH_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ steps.crates-io-auth.outputs.token }}