Use GITEA_PATH instead of GITHUB_PATH
Some checks failed
Some checks failed
- Replaced `GITHUB_PATH` with `GITEA_PATH` in CI workflows. - This corrects the environment variable used for adding Cargo binaries. - Ensures correct execution within the Gitea Actions environment.
This commit is contained in:
parent
ad437ce752
commit
1aada98b92
@ -15,8 +15,7 @@ jobs:
|
||||
- name: Install uv
|
||||
run: |
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
uv pip install --system ruff
|
||||
echo "$HOME/.cargo/bin" >> $GITEA_PATH
|
||||
|
||||
- name: Run Ruff
|
||||
run: |
|
||||
@ -34,7 +33,7 @@ jobs:
|
||||
- name: Install uv
|
||||
run: |
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
echo "$HOME/.cargo/bin" >> $GITEA_PATH
|
||||
|
||||
- name: Run Tests
|
||||
run: |
|
||||
@ -48,14 +47,14 @@ jobs:
|
||||
deploy_to_pypi:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
if: github.ref == 'refs/heads/master'
|
||||
if: gitea.ref == 'refs/heads/master'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install uv + build tools
|
||||
run: |
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
echo "$HOME/.cargo/bin" >> $GITEA_PATH
|
||||
uv pip install --system build twine
|
||||
|
||||
- name: Publish to PyPI
|
||||
@ -71,7 +70,7 @@ jobs:
|
||||
deploy_to_dockerhub:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [deploy_to_pypi]
|
||||
if: github.ref == 'refs/heads/master'
|
||||
if: gitea.ref == 'refs/heads/master'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
@ -90,7 +89,7 @@ jobs:
|
||||
deploy_to_gitea:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [deploy_to_pypi]
|
||||
if: github.ref == 'refs/heads/master'
|
||||
if: gitea.ref == 'refs/heads/master'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user