From 35f5eb5bcc9fe25c02e3521276034d31b79091fe Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sat, 17 May 2025 14:36:25 -0300 Subject: [PATCH] Use GITHUB_PATH instead of GITEA_PATH - Replaced `GITEA_PATH` with `GITHUB_PATH` in CI workflow files. - This corrects the environment variable used for adding Cargo's bin directory to the PATH. - Ensures the workflow functions correctly within the GitHub Actions environment. --- .gitea/workflows/ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index d7f6e3b..4ac985d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: - name: Install uv run: | curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.cargo/bin" >> $GITEA_PATH + echo "$HOME/.cargo/bin" >> $GITHUB_PATH - name: Run Ruff run: | @@ -33,7 +33,7 @@ jobs: - name: Install uv run: | curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.cargo/bin" >> $GITEA_PATH + echo "$HOME/.cargo/bin" >> $GITHUB_PATH - name: Run Tests run: | @@ -47,14 +47,14 @@ jobs: deploy_to_pypi: runs-on: ubuntu-latest needs: test - if: gitea.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' steps: - uses: actions/checkout@v3 - - name: Install uv + build tools + - name: Install uv run: | curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.cargo/bin" >> $GITEA_PATH + echo "$HOME/.cargo/bin" >> $GITHUB_PATH - name: Publish to PyPI env: @@ -63,14 +63,14 @@ jobs: run: | uv venv .venv source .venv/bin/activate - uv pip install --system build twine + uv pip install build twine uv run python -m build uv run python -m twine upload dist/* deploy_to_dockerhub: runs-on: ubuntu-latest needs: [deploy_to_pypi] - if: gitea.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' steps: - uses: actions/checkout@v3 @@ -89,7 +89,7 @@ jobs: deploy_to_gitea: runs-on: ubuntu-latest needs: [deploy_to_pypi] - if: gitea.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' steps: - uses: actions/checkout@v3