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
|
- name: Install uv
|
||||||
run: |
|
run: |
|
||||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||||
echo "$HOME/.cargo/bin" >> $GITEA_PATH
|
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Run Ruff
|
- name: Run Ruff
|
||||||
run: |
|
run: |
|
||||||
@ -33,7 +33,7 @@ jobs:
|
|||||||
- name: Install uv
|
- name: Install uv
|
||||||
run: |
|
run: |
|
||||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||||
echo "$HOME/.cargo/bin" >> $GITEA_PATH
|
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: |
|
run: |
|
||||||
@ -47,14 +47,14 @@ jobs:
|
|||||||
deploy_to_pypi:
|
deploy_to_pypi:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: test
|
needs: test
|
||||||
if: gitea.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install uv + build tools
|
- name: Install uv
|
||||||
run: |
|
run: |
|
||||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
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
|
- name: Publish to PyPI
|
||||||
env:
|
env:
|
||||||
@ -63,14 +63,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
uv venv .venv
|
uv venv .venv
|
||||||
source .venv/bin/activate
|
source .venv/bin/activate
|
||||||
uv pip install --system build twine
|
uv pip install build twine
|
||||||
uv run python -m build
|
uv run python -m build
|
||||||
uv run python -m twine upload dist/*
|
uv run python -m twine upload dist/*
|
||||||
|
|
||||||
deploy_to_dockerhub:
|
deploy_to_dockerhub:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [deploy_to_pypi]
|
needs: [deploy_to_pypi]
|
||||||
if: gitea.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ jobs:
|
|||||||
deploy_to_gitea:
|
deploy_to_gitea:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [deploy_to_pypi]
|
needs: [deploy_to_pypi]
|
||||||
if: gitea.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user