From a2642f6b9adc4edb0a8987dfe6584483e99decbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20W=C3=B6lfer?= Date: Sat, 17 Jan 2026 22:18:06 +0100 Subject: [PATCH] Add release CI --- .gitea/workflows/release.yaml | 30 ++++++++++++++++++++++++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 .gitea/workflows/release.yaml diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..a473f0e --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -0,0 +1,30 @@ +name: Release + +on: + push: + tags: + - 'v*.*.*' + +env: + RUSTUP_TOOLCHAIN: nightly + +jobs: + build_release: + runs-on: ubuntu-latest + env: + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} + GITEA_SERVER: ${{ secrets.GITEA_SERVER }} + steps: + - uses: actions/checkout@v6 + + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: nightly + + - name: Build release + run: | + cargo build --release + - uses: akkuman/gitea-release-action@v1 + with: + files: |- + bin/** \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index c3ea671..92daab9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3201,7 +3201,7 @@ dependencies = [ [[package]] name = "teachertracker-rs" -version = "0.1.4" +version = "0.1.5" dependencies = [ "async-trait", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 95ddbeb..1528ca8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "teachertracker-rs" -version = "0.1.4" +version = "0.1.5" edition = "2024" authors = ["Lukas Wölfer "] description = "A MediaWiki bot that updates score information of teachers"