From 37936e924d93d5b8c99f115beb438421d9eb4151 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Fri, 6 Feb 2026 10:13:00 +0000 Subject: [PATCH] fix: replace GitHub-specific variables with Gitea-compatible ones --- .gitea/workflows/ci.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 3a09d50..89550c2 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -11,22 +11,22 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - + - name: Install Rust - uses: actions/setup-rust@v1 + uses: actions-rs/toolchain@v1 with: toolchain: stable - cache: true - + override: true + - name: Build run: cargo build --release - + - name: Run tests run: cargo test --all - + - name: Run clippy run: cargo clippy --all --all-features -- -D warnings - + - name: Check formatting run: cargo fmt -- --check @@ -35,17 +35,17 @@ jobs: needs: test steps: - uses: actions/checkout@v4 - + - name: Install Rust - uses: actions/setup-rust@v1 + uses: actions-rs/toolchain@v1 with: toolchain: stable target: x86_64-unknown-linux-musl - cache: true - + override: true + - name: Build binary run: cargo build --release --target x86_64-unknown-linux-musl - + - name: Upload binary artifact uses: actions/upload-artifact@v4 with: @@ -55,12 +55,12 @@ jobs: release: runs-on: ubuntu-latest needs: binary - if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(gitea.ref, 'refs/tags/v') steps: - name: Create Release uses: https://gitea.com/actions/release-action@main with: files: | target/x86_64-unknown-linux-musl/release/env-guard - title: ${{ github.ref_name }} - body: "Release ${{ github.ref_name }} of env-guard" + title: ${{ gitea.ref_name }} + body: "Release ${{ gitea.ref_name }} of env-guard"