Template
Compare commits
9
Commits
72575b2d24
...
582c4a6905
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
582c4a6905 | ||
|
|
2a93781fd4 | ||
|
|
405804aac1 | ||
|
|
cba3620268 | ||
|
|
117b102407 | ||
|
|
b62d25c6d5 | ||
|
|
65b043fe9c | ||
|
|
4f96a3572d | ||
|
|
02f9bbd817 |
@@ -52,8 +52,7 @@ jobs:
|
||||
|
||||
- name: Run release-plz release
|
||||
run: |
|
||||
release-plz release --forge gitea --git-token ${{ secrets.GITEA_TOKEN }} --registry gitea --token "Bearer ${{ secrets.CARGO_REGISTRIES_GITEA_TOKEN }}"
|
||||
|
||||
release-plz release --forge gitea --git-token ${{ secrets.GITEA_TOKEN }} --registry gitea --token "Bearer ${{ secrets.CARGO_REGISTRIES_GITEA_TOKEN }}"
|
||||
# Create a PR with the new versions and changelog, preparing the next releases
|
||||
release-plz-pr:
|
||||
name: Release-plz PR
|
||||
@@ -77,7 +76,7 @@ jobs:
|
||||
- name: Fill Credentials
|
||||
run: |
|
||||
git config --global credential.helper store
|
||||
echo "https://ci-bot:${{ secret.GITEA_TOKEN }}@gitea.melfely.com" > ~/.git-credentials
|
||||
echo "https://ci-bot:${{ secrets.GITEA_TOKEN }}@gitea.melfely.com" > ~/.git-credentials
|
||||
|
||||
- name: Run release-plz release-pr
|
||||
run: |
|
||||
|
||||
Generated
+4
-1
@@ -4,7 +4,10 @@ version = 4
|
||||
|
||||
[[package]]
|
||||
name = "example_bin"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
dependencies = [
|
||||
"example_lib",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "example_lib"
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.1.1](https://gitea.melfely.com/melfely/rust_workflow_template/compare/example_bin-v0.1.0...example_bin-v0.1.1) - 2026-09-11
|
||||
|
||||
### Added
|
||||
|
||||
- bin example now references the local example_lib
|
||||
@@ -1,6 +1,7 @@
|
||||
[package]
|
||||
name = "example_bin"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
example_lib = { version = "0.1.1", path = "../example_lib", registry = "gitea" }
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
use example_lib::*;
|
||||
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
|
||||
let result = add(1, 1);
|
||||
assert_eq!(result, 2);
|
||||
|
||||
let result = sub(1, 1);
|
||||
assert_eq!(result, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user