Skip to content

Commit e21067a

Browse files
authored
Merge pull request #1 from encryption4all/add-release-plz
Add release-plz automated release pipeline
2 parents 315749b + 9f05f2d commit e21067a

3 files changed

Lines changed: 74 additions & 4 deletions

File tree

.github/workflows/release-plz.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Release-plz
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
# Tag the release commit, create a GitHub release, and publish to crates.io.
10+
release-plz-release:
11+
name: Release-plz release
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
pull-requests: read
16+
id-token: write
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
persist-credentials: false
23+
- name: Install Rust toolchain
24+
uses: dtolnay/rust-toolchain@stable
25+
- name: Run release-plz
26+
uses: release-plz/action@v0.5
27+
with:
28+
command: release
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
32+
# Open or update the release PR with version bumps and changelog entries.
33+
release-plz-pr:
34+
name: Release-plz PR
35+
runs-on: ubuntu-latest
36+
permissions:
37+
contents: write
38+
pull-requests: write
39+
concurrency:
40+
group: release-plz-${{ github.ref }}
41+
cancel-in-progress: false
42+
steps:
43+
- name: Checkout repository
44+
uses: actions/checkout@v4
45+
with:
46+
fetch-depth: 0
47+
persist-credentials: false
48+
- name: Install Rust toolchain
49+
uses: dtolnay/rust-toolchain@stable
50+
- name: Run release-plz
51+
uses: release-plz/action@v0.5
52+
with:
53+
command: release-pr
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Cargo.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
[package]
2-
name = "irma"
2+
name = "irmars"
33
version = "0.2.1"
4-
authors = ["David Venhoek <david@venhoek.nl>"]
4+
authors = [
5+
"David Venhoek <david@venhoek.nl>",
6+
"Ruben Hensen <r.hensen@caesar.nl>",
7+
]
58
edition = "2021"
6-
repository = "https://github.com/tweedegolf/irmars"
9+
repository = "https://github.com/encryption4all/irmars"
710
license = "Apache-2.0"
8-
description = "A rust interface for interacting with IRMA servers"
11+
description = "A rust interface for interacting with IRMA servers (encryption4all fork)"
12+
readme = "README.md"
913

1014
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1115

release-plz.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[workspace]
2+
# Run cargo-semver-checks before publishing to crates.io
3+
semver_check = true
4+
# Tag releases as "v<version>" (e.g. v0.3.0)
5+
git_tag_name = "v{{ version }}"
6+
# GitHub release name matches the tag
7+
git_release_name = "v{{ version }}"
8+
9+
[[package]]
10+
name = "irmars"
11+
publish = true

0 commit comments

Comments
 (0)