Author SHA1 Message Date
melfely cba3620268 Merge pull request 'chore(example_bin): release v0.1.1' (#5) from release-plz-2026-09-11T14-51-37Z into melfely/release-plz
Release-plz / Release-plz PR (push) Successful in 1m18s
Release-plz / Release-plz release (push) Failing after 1m29s
Reviewed-on: #5
2026-09-11 15:21:38 +00:00
ci-bot 117b102407 chore(example_bin): release v0.1.1
Signed-off-by: ci-bot <bot@email.melfely.com>
2026-09-11 14:51:37 +00:00
melfely b62d25c6d5 ci: Revert previous. Fixed "secret." to "secrets." for git credentials
Release-plz / Release-plz release (push) Successful in 1m26s
Release-plz / Release-plz PR (push) Successful in 1m33s
2026-09-11 09:49:27 -05:00
melfely 65b043fe9c ci: Changed from direct secret sub to env variables
Release-plz / Release-plz release (push) Successful in 1m25s
Release-plz / Release-plz PR (push) Failing after 1m29s
2026-09-11 09:41:20 -05:00
melfely 4f96a3572d feat: bin example now references the local example_lib
Release-plz / Release-plz release (push) Successful in 1m31s
Release-plz / Release-plz PR (push) Failing after 1m32s
2026-09-10 21:16:57 -05:00
melfely 02f9bbd817 Merge pull request 'chore(example_lib): release v0.1.1' (#4) from release-plz-2026-09-11T01-35-29Z into melfely/release-plz
Release-plz / Release-plz PR (push) Successful in 2m25s
Release-plz / Release-plz release (push) Successful in 2m27s
Reviewed-on: #4
2026-09-11 02:09:52 +00:00
melfely d2400ee8bf Merge branch 'melfely/release-plz' into release-plz-2026-09-11T01-35-29Z
Lint & Build / Linting (pull_request) Successful in 2m18s
Release-plz / Release-plz PR (push) Successful in 2m21s
Release-plz / Release-plz release (push) Successful in 2m26s
Lint & Build / Build (pull_request) Successful in 58s
Lint & Build / Test (pull_request) Successful in 1m29s
Lint & Build / Cross-Build-Windows (pull_request) Successful in 2m2s
Lint & Build / Cross-Build-Linux (pull_request) Successful in 2m15s
Lint & Build / Cross-Build-MacOS (pull_request) Successful in 2m33s
2026-09-11 02:09:34 +00:00
melfely 782c9166c2 ci: removes the uneeded step "install git"
Release-plz / Release-plz PR (push) Successful in 1m28s
Release-plz / Release-plz release (push) Successful in 1m32s
2026-09-10 21:02:58 -05:00
melfely c365c2b9e5 ci: attempting to use manual git credential config
Release-plz / Release-plz PR (push) Failing after 0s
Release-plz / Release-plz release (push) Successful in 1m31s
2026-09-10 20:58:06 -05:00
melfely 135ea657fa ci: added repository url replacement
Release-plz / Release-plz release (push) Successful in 3m21s
Release-plz / Release-plz PR (push) Failing after 3m25s
2026-09-10 20:44:15 -05:00
melfely ae39643568 chore(example_lib): release v0.1.1
Lint & Build / Linting (pull_request) Successful in 2m26s
Release-plz / Release-plz release (push) Successful in 2m36s
Release-plz / Release-plz PR (push) Successful in 2m39s
Lint & Build / Build (pull_request) Successful in 1m20s
Lint & Build / Test (pull_request) Successful in 2m32s
Lint & Build / Cross-Build-Windows (pull_request) Successful in 12m28s
Lint & Build / Cross-Build-Linux (pull_request) Successful in 12m49s
Lint & Build / Cross-Build-MacOS (pull_request) Successful in 13m21s
Signed-off-by: melfey <bug362@outlook.com>
2026-09-10 20:35:29 -05:00
melfely bb37eb9d94 feat: added pub fn sub()
Release-plz / Release-plz release (push) Successful in 1m27s
Release-plz / Release-plz PR (push) Failing after 1m34s
This takes in two u64, and returns the difference.

TESTING WORKFLOWS
2026-09-10 20:18:36 -05:00
melfely 77cfc8bed9 ci: added git user and correct cargo repo token signature
Release-plz / Release-plz release (push) Successful in 1m33s
Release-plz / Release-plz PR (push) Successful in 1m34s
2026-09-10 20:12:55 -05:00
melfely 8abb2f210b fix: wrong url in the config.toml cargo registry
Release-plz / Release-plz PR (push) Failing after 1m28s
Release-plz / Release-plz release (push) Failing after 1m33s
2026-09-10 20:05:24 -05:00
melfely a70cbca5a9 ci: Change from release-plz action to cli
Release-plz / Release-plz release (push) Failing after 1m47s
Release-plz / Release-plz PR (push) Failing after 1m54s
The action currently only supports github (I think) while the CLI tool claims to support gitea (the action also does...)
2026-09-10 20:00:06 -05:00
melfely bbca93470c ci: replaces v0.5 with v0.4 (this working is a hell of a stretch)
Release-plz / Release-plz PR (push) Failing after 1m20s
Release-plz / Release-plz release (push) Failing after 1m20s
2026-09-10 19:36:18 -05:00
melfely a1aaf5cd7e ci: Added gh tool install.
Release-plz / Release-plz PR (push) Failing after 1m43s
Release-plz / Release-plz release (push) Failing after 1m44s
2026-09-10 19:31:37 -05:00
melfely b3d5f4ef18 ci: Removed Github token from the run.
Release-plz / Release-plz release (push) Failing after 1m38s
Release-plz / Release-plz PR (push) Failing after 1m40s
2026-09-10 18:54:03 -05:00
melfely 316a3c591d ci: Added Release-Plz CI workflow.
Release-plz / Release-plz release (push) Failing after 1m53s
Release-plz / Release-plz PR (push) Failing after 1m55s
2026-09-10 18:47:25 -05:00
9 changed files with 134 additions and 5 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
[registries.gitea] [registries.gitea]
index = "sparse+https://gitea.example.com/api/packages/crates/cargo/" index = "sparse+https://gitea.melfely.com/api/packages/crates/cargo/"
+83
View File
@@ -0,0 +1,83 @@
name: Release-plz
on:
push:
# Comment out branch restrictions until we are closer to done
# branches:
# - [main, master]
jobs:
# Release unpublished packages.
release-plz-release:
name: Release-plz release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read
steps:
- &setup-git-user
name: Config Git User
run: |
git config --global user.name "ci-bot"
git config --global user.email "bot@email.melfely.com"
- &checkout
name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
persist-credentials: false
- &install-rust
name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- &install-cargo-semver
name: Install Cargo SemVer Checks
uses: taiki-e/install-action@fa23953489c080190314742a9b907f8e97c6767c # v2.87.10
with:
tool: cargo-semver-checks
- &install-release-plz
name: Install release-plz
uses: taiki-e/install-action@fa23953489c080190314742a9b907f8e97c6767c # v2.87.10
with:
tool: release-plz
- 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 }}"
# Create a PR with the new versions and changelog, preparing the next releases
release-plz-pr:
name: Release-plz PR
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
concurrency:
group: release-plz-${{ github.ref }}
cancel-in-progress: false
steps:
- *setup-git-user
- *checkout
- *install-rust
- *install-cargo-semver
- *install-release-plz
- name: Fill Credentials
run: |
git config --global credential.helper store
echo "https://ci-bot:${{ secrets.GITEA_TOKEN }}@gitea.melfely.com" > ~/.git-credentials
- name: Run release-plz release-pr
run: |
release-plz release-pr --forge gitea --git-token ${{ secrets.GITEA_TOKEN }} --registry gitea
Generated
+5 -2
View File
@@ -4,8 +4,11 @@ version = 4
[[package]] [[package]]
name = "example_bin" name = "example_bin"
version = "0.1.0" version = "0.1.1"
dependencies = [
"example_lib",
]
[[package]] [[package]]
name = "example_lib" name = "example_lib"
version = "0.1.0" version = "0.1.1"
+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_bin-v0.1.0...example_bin-v0.1.1) - 2026-09-11
### Added
- bin example now references the local example_lib
+2 -1
View File
@@ -1,6 +1,7 @@
[package] [package]
name = "example_bin" name = "example_bin"
version = "0.1.0" version = "0.1.1"
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]
+6
View File
@@ -2,6 +2,10 @@ pub fn add(left: u64, right: u64) -> u64 {
left + right left + right
} }
pub fn sub(left: u64, right: u64) -> u64 {
left - right
}
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;
@@ -10,5 +14,7 @@ mod tests {
fn it_works() { fn it_works() {
let result = add(2, 2); let result = add(2, 2);
assert_eq!(result, 4); assert_eq!(result, 4);
let result = sub(2, 2);
assert_eq!(result, 0);
} }
} }