Use GITHUB_PATH instead of GITEA_PATH
Some checks failed
Some checks failed
- 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.
This commit is contained in:
parent
0a37d3a23a
commit
35f5eb5bcc
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user