Skip to content

Commit 78f7a77

Browse files
Alex HolmbergAlex Holmberg
authored andcommitted
feat: cargo and release-plz implmented
1 parent b97eb83 commit 78f7a77

3 files changed

Lines changed: 57 additions & 2 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+
release-plz-release:
10+
name: Release-plz release
11+
runs-on: ubuntu-latest
12+
if: ${{ github.repository_owner == 'syncable-dev' }}
13+
permissions:
14+
contents: write
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
token: ${{ secrets.RELEASE_PLZ_TOKEN }}
21+
- name: Install Rust toolchain
22+
uses: dtolnay/rust-toolchain@stable
23+
- name: Run release-plz
24+
uses: release-plz/action@v0.5
25+
with:
26+
command: release
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
29+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
30+
31+
release-plz-pr:
32+
name: Release-plz PR
33+
runs-on: ubuntu-latest
34+
if: ${{ github.repository_owner == 'syncable-dev' }}
35+
permissions:
36+
pull-requests: write
37+
contents: write
38+
concurrency:
39+
group: release-plz-${{ github.ref }}
40+
cancel-in-progress: false
41+
steps:
42+
- name: Checkout repository
43+
uses: actions/checkout@v4
44+
with:
45+
fetch-depth: 0
46+
token: ${{ secrets.RELEASE_PLZ_TOKEN }}
47+
- name: Install Rust toolchain
48+
uses: dtolnay/rust-toolchain@stable
49+
- name: Run release-plz
50+
uses: release-plz/action@v0.5
51+
with:
52+
command: release-pr
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
55+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "syncable-cli"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
edition = "2024"
55
authors = ["Syncable Team"]
66
description = "A Rust-based CLI that analyzes code repositories and generates Infrastructure as Code configurations"

0 commit comments

Comments
 (0)