Skip to content

Commit 66ef800

Browse files
committed
ops: configure release-plz
1 parent 73b9405 commit 66ef800

3 files changed

Lines changed: 94 additions & 0 deletions

File tree

.github/workflows/release-plz.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Release-plz
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
release-plz-release:
11+
name: Release-plz release
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
pull-requests: read
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
persist-credentials: false
23+
24+
- name: Install Rust toolchain
25+
uses: dtolnay/rust-toolchain@stable
26+
27+
- name: Run release-plz
28+
uses: release-plz/action@v0.5
29+
with:
30+
command: release
31+
config: release-plz.toml
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN || secrets.GITHUB_TOKEN }}
34+
35+
release-plz-pr:
36+
name: Release-plz PR
37+
runs-on: ubuntu-latest
38+
permissions:
39+
contents: write
40+
pull-requests: write
41+
concurrency:
42+
group: release-plz-${{ github.ref }}
43+
cancel-in-progress: false
44+
45+
steps:
46+
- name: Checkout repository
47+
uses: actions/checkout@v4
48+
with:
49+
fetch-depth: 0
50+
persist-credentials: false
51+
52+
- name: Install Rust toolchain
53+
uses: dtolnay/rust-toolchain@stable
54+
55+
- name: Run release-plz
56+
uses: release-plz/action@v0.5
57+
with:
58+
command: release-pr
59+
config: release-plz.toml
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN || secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Changelog
2+
3+
All notable changes to Andy C++ will be documented in this file.

release-plz.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[workspace]
2+
release = false
3+
publish = false
4+
git_release_enable = false
5+
git_tag_enable = false
6+
changelog_update = false
7+
semver_check = false
8+
repo_url = "https://github.com/timfennis/andy-cpp"
9+
10+
[[package]]
11+
name = "ndc_bin"
12+
release = true
13+
publish = false
14+
git_only = true
15+
git_tag_name = "v{{ version }}"
16+
git_tag_enable = true
17+
git_release_name = "v{{ version }}"
18+
git_release_enable = true
19+
changelog_path = "CHANGELOG.md"
20+
changelog_include = [
21+
"ndc_analyser",
22+
"ndc_core",
23+
"ndc_interpreter",
24+
"ndc_lexer",
25+
"ndc_lsp",
26+
"ndc_macros",
27+
"ndc_parser",
28+
"ndc_stdlib",
29+
"ndc_vm",
30+
]

0 commit comments

Comments
 (0)