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"