Skip to content

Commit 0c640ea

Browse files
committed
feat: Use release-plz
1 parent edaedc8 commit 0c640ea

File tree

4 files changed

+32
-39
lines changed

4 files changed

+32
-39
lines changed
Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Rust CI
1+
name: Build, Lint, Test
22

33
on:
44
push:
@@ -7,25 +7,7 @@ on:
77
pull_request:
88

99
jobs:
10-
build:
11-
runs-on: ubuntu-latest
12-
13-
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v2
16-
17-
- name: Setup Rust
18-
uses: actions-rs/toolchain@v1
19-
with:
20-
toolchain: stable
21-
22-
- name: Install dependencies
23-
run: cargo build --verbose
24-
25-
- name: Run tests
26-
run: cargo test --verbose
27-
28-
lint-and-format:
10+
build-test-lint:
2911
runs-on: ubuntu-latest
3012

3113
steps:
@@ -45,3 +27,6 @@ jobs:
4527

4628
- name: Check formatting
4729
run: cargo fmt -- --check
30+
31+
- name: Run tests
32+
run: cargo test --verbose

.github/workflows/cd.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
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@v4
19+
with:
20+
fetch-depth: 0
21+
- name: Install Rust toolchain
22+
uses: dtolnay/rust-toolchain@stable
23+
- name: Run release-plz
24+
uses: MarcoIeni/release-plz-action@v0.5
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
# Changelog

0 commit comments

Comments
 (0)