Skip to content

Commit be6dad7

Browse files
ci (release-please): add semver automation
1 parent d7bb7a9 commit be6dad7

File tree

5 files changed

+45
-3
lines changed

5 files changed

+45
-3
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches: ['main', 'master']
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
release-please:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Release with release-please
17+
uses: googleapis/release-please-action@v4
18+
with:
19+
# PAT with write access to the repository
20+
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
21+
# optional. customize path to release-please-config.json
22+
config-file: release-please-config.json
23+
# optional. customize path to .release-please-manifest.json
24+
manifest-file: .release-please-manifest.json

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.9.1"
3+
}

release-please-config.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"packages": {
4+
".": {
5+
"changelog-path": "CHANGELOG.md",
6+
"release-type": "rust",
7+
"bump-minor-pre-major": false,
8+
"bump-patch-for-minor-pre-major": false,
9+
"draft": false,
10+
"prerelease": false
11+
}
12+
}
13+
}

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lunch"
3-
version = "0.9.0"
3+
version = "0.9.1"
44
description = "Cross-platform restaurant selector"
55
authors = ["Lance"]
66
license = "Unlicense"

src-tauri/tauri.conf.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "Lunch",
4-
"version": "0.9.0",
54
"identifier": "com.lunch.desktop",
65
"build": {
76
"beforeBuildCommand": "",
@@ -27,7 +26,10 @@
2726
},
2827
"bundle": {
2928
"active": true,
30-
"targets": ["app", "dmg"],
29+
"targets": [
30+
"app",
31+
"dmg"
32+
],
3133
"icon": [
3234
"icons/32x32.png",
3335
"icons/128x128.png",

0 commit comments

Comments
 (0)