-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (34 loc) · 1.02 KB
/
release.yml
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
name: release
permissions:
pull-requests: write
contents: write
on:
push:
branches: [main]
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# release-plz can create release notes and update changelogs based on (conventional) commits. But only if all the history is fetched
fetch-depth: 0
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
id: release-plz
uses: MarcoIeni/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- uses: fregante/[email protected]
- name: install dprint
uses: taiki-e/[email protected]
with:
tool: [email protected]
- name: fmt
run: |
dprint fmt
git commit -am 'chore: format files'
git push origin ${{ steps.release-plz.outputs.head_branch }}