Merge pull request 'chore(example_lib): release v0.1.1' (#4) from release-plz-2026-09-11T01-35-29Z into melfely/release-plz

Reviewed-on: #4

feat: bin example now references the local example_lib

ci: Changed from direct secret sub to env variables
This commit is contained in:
2026-09-11 11:20:33 -05:00
committed by melfely
6 changed files with 32 additions and 3 deletions
+4 -1
View File
@@ -51,8 +51,11 @@ jobs:
- name: Run release-plz release - name: Run release-plz release
env:
GIT_TOKEN: ${{ secrets.GITEA_TOKEN }}
CARGO_TOKEN: "Bearer ${{ secrets.CARGO_REGISTRIES_GITEA_TOKEN }}"
run: | 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 $GIT_TOKEN --registry gitea --token CARGO_TOKEN
# Create a PR with the new versions and changelog, preparing the next releases # Create a PR with the new versions and changelog, preparing the next releases
release-plz-pr: release-plz-pr:
Generated
+4 -1
View File
@@ -5,7 +5,10 @@ version = 4
[[package]] [[package]]
name = "example_bin" name = "example_bin"
version = "0.1.0" version = "0.1.0"
dependencies = [
"example_lib",
]
[[package]] [[package]]
name = "example_lib" name = "example_lib"
version = "0.1.0" version = "0.1.1"
+1
View File
@@ -4,3 +4,4 @@ version = "0.1.0"
edition = "2024" edition = "2024"
[dependencies] [dependencies]
example_lib = { path = "../example_lib" }
+8
View File
@@ -1,3 +1,11 @@
use example_lib::*;
fn main() { fn main() {
println!("Hello, world!"); println!("Hello, world!");
let result = add(1, 1);
assert_eq!(result, 2);
let result = sub(1, 1);
assert_eq!(result, 0);
} }
+14
View File
@@ -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_lib-v0.1.0...example_lib-v0.1.1) - 2026-09-11
### Added
- added pub fn sub()
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "example_lib" name = "example_lib"
version = "0.1.0" version = "0.1.1"
edition = "2024" edition = "2024"
[dependencies] [dependencies]