Author SHA1 Message Date
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 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
3 changed files with 91 additions and 1 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
[registries.gitea]
index = "sparse+https://gitea.example.com/api/packages/crates/cargo/"
index = "sparse+https://gitea.melfely.com/api/packages/crates/cargo/"
+84
View File
@@ -0,0 +1,84 @@
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:${{ secret.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
+6
View File
@@ -2,6 +2,10 @@ pub fn add(left: u64, right: u64) -> u64 {
left + right
}
pub fn sub(left: u64, right: u64) -> u64 {
left - right
}
#[cfg(test)]
mod tests {
use super::*;
@@ -10,5 +14,7 @@ mod tests {
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
let result = sub(2, 2);
assert_eq!(result, 0);
}
}