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