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