Skip to content

Commit 375fd29

Browse files
authored
Merge pull request #58 from encryption4all/feat/release-plz
Add release-plz
2 parents 7ba5d17 + cc91f84 commit 375fd29

3 files changed

Lines changed: 53 additions & 11 deletions

File tree

.github/workflows/delivery.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
digest: ${{ steps.build.outputs.digest }}
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v6
2525

2626
- name: Select build profile
2727
id: config
@@ -33,18 +33,18 @@ jobs:
3333
fi
3434
3535
- name: Set up Docker Buildx
36-
uses: docker/setup-buildx-action@v3
36+
uses: docker/setup-buildx-action@v4
3737

3838
- name: Login to GitHub Container Registry
39-
uses: docker/login-action@v3
39+
uses: docker/login-action@v4
4040
with:
4141
registry: ghcr.io
4242
username: ${{ github.actor }}
4343
password: ${{ secrets.GITHUB_TOKEN }}
4444

4545
- name: Build and push (linux/amd64)
4646
id: build
47-
uses: docker/build-push-action@v6
47+
uses: docker/build-push-action@v7
4848
with:
4949
context: .
5050
platforms: linux/amd64
@@ -77,7 +77,7 @@ jobs:
7777
digest: ${{ steps.build.outputs.digest }}
7878
steps:
7979
- name: Checkout
80-
uses: actions/checkout@v4
80+
uses: actions/checkout@v6
8181

8282
- name: Select build profile
8383
id: config
@@ -89,18 +89,18 @@ jobs:
8989
fi
9090
9191
- name: Set up Docker Buildx
92-
uses: docker/setup-buildx-action@v3
92+
uses: docker/setup-buildx-action@v4
9393

9494
- name: Login to GitHub Container Registry
95-
uses: docker/login-action@v3
95+
uses: docker/login-action@v4
9696
with:
9797
registry: ghcr.io
9898
username: ${{ github.actor }}
9999
password: ${{ secrets.GITHUB_TOKEN }}
100100

101101
- name: Build and push (linux/arm64)
102102
id: build
103-
uses: docker/build-push-action@v6
103+
uses: docker/build-push-action@v7
104104
with:
105105
context: .
106106
platforms: linux/arm64
@@ -118,7 +118,7 @@ jobs:
118118
# No checkout needed: docker/metadata-action reads from the GitHub Actions context.
119119
- name: Docker meta
120120
id: meta
121-
uses: docker/metadata-action@v5
121+
uses: docker/metadata-action@v6
122122
with:
123123
images: ghcr.io/${{ github.repository }}
124124
tags: |
@@ -129,10 +129,10 @@ jobs:
129129
type=ref,event=branch,enable=${{ github.event_name == 'workflow_dispatch' }}
130130
131131
- name: Set up Docker Buildx
132-
uses: docker/setup-buildx-action@v3
132+
uses: docker/setup-buildx-action@v4
133133

134134
- name: Login to GitHub Container Registry
135-
uses: docker/login-action@v3
135+
uses: docker/login-action@v4
136136
with:
137137
registry: ghcr.io
138138
username: ${{ github.actor }}

.github/workflows/release-plz.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release-plz
2+
3+
permissions:
4+
pull-requests: write
5+
contents: write
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
release-plz:
14+
name: Release-plz
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v6
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Install Rust toolchain
23+
uses: dtolnay/rust-toolchain@stable
24+
25+
- name: Run release-plz
26+
uses: release-plz/action@v0.5
27+
with:
28+
command: release-plz
29+
manifest_path: cryptify/Cargo.toml
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

release-plz.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[workspace]
2+
changelog_update = true
3+
git_release_enable = true
4+
git_tag_enable = true
5+
publish = false
6+
7+
[[package]]
8+
name = "cryptify"
9+
git_tag_name = "v{{ version }}"
10+
git_release_name = "v{{ version }}"

0 commit comments

Comments
 (0)