Skip to content

Commit 2a233d2

Browse files
authored
Add release-plz instead of custom variant (#20)
Switches to [release-plz](https://release-plz.ieni.dev/) instead of a custom blend of actions for better release automation.
1 parent 45aaaf8 commit 2a233d2

File tree

2 files changed

+32
-14
lines changed

2 files changed

+32
-14
lines changed

.github/workflows/publish.yml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,32 @@ name: Publish
33

44
on: # yamllint disable-line rule:truthy
55
push:
6-
tags:
7-
- "v*.*.*"
6+
branches:
7+
- main
88

99
jobs:
10-
shipyard:
11-
name: Shipyard
12-
runs-on: ubuntu-22.04
10+
release-plz:
11+
name: Release Plz
12+
runs-on: ubuntu-latest
1313
steps:
14+
- uses: actions/create-github-app-token@v1
15+
id: generate-token
16+
with:
17+
app-id: ${{ secrets.RELEASE_PLZ_APP_ID }}
18+
private-key: ${{ secrets.RELEASE_PLZ_PRIVATE_KEY }}
19+
1420
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
token: ${{ steps.generate-token.outputs.token }}
1524
- uses: TheHackerApp/setup-rust@main
1625
with:
1726
ssh-private-key: ${{ secrets.SHIPYARD_SSH_KEY }}
1827
token: ${{ secrets.SHIPYARD_TOKEN }}
1928

20-
- run: cargo publish
21-
22-
release:
23-
name: Release
24-
runs-on: ubuntu-22.04
25-
steps:
26-
- uses: actions/checkout@v4
27-
- uses: softprops/action-gh-release@v2
29+
- uses: MarcoIeni/[email protected]
2830
with:
29-
generate_release_notes: true
31+
registry: wafflehacks
32+
env:
33+
CARGO_REGISTRY_TOKEN: ${{ secrets.SHIPYARD_TOKEN }}
34+
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}

release-plz.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[workspace]
2+
allow_dirty = false
3+
changelog_update = false
4+
git_release_enable = true
5+
git_release_draft = false
6+
git_tag_enable = true
7+
pr_draft = false
8+
pr_labels = ["release"]
9+
publish = true
10+
semver_check = true
11+
12+
[[package]]
13+
name = "migrator"

0 commit comments

Comments
 (0)