ci: fix release workflows for uv (#4053)

This commit is contained in:
Jordan Frazier 2024-10-07 14:41:19 -07:00 committed by GitHub
commit 4a574da0c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 25 additions and 69 deletions

View file

@ -103,9 +103,6 @@ jobs:
persist-credentials: true
- name: "Setup Environment"
uses: ./.github/actions/setup-uv
with:
ref: ${{ inputs.nightly_tag_main || github.ref }}
- name: Install the project
run: uv sync --dev
@ -172,12 +169,10 @@ jobs:
- name: Check out the code at a specific ref
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
ref: ${{ inputs.nightly_tag_main || github.ref }}
persist-credentials: true
- name: "Setup Environment"
uses: ./.github/actions/setup-uv
with:
ref: ${{ inputs.nightly_tag_main || github.ref }}
- name: Install the project
run: |
@ -288,9 +283,9 @@ jobs:
restart-space:
name: Restart HuggingFace Spaces
if: ${{ inputs.release_type == 'main' && inputs.nightly_build == 'false' }}
if: ${{ inputs.release_type == 'main' && needs.get-version.outputs.nightly-build == 'false' }}
runs-on: ubuntu-latest
needs: build
needs: [build, get-version]
strategy:
matrix:
python-version:
@ -302,8 +297,6 @@ jobs:
ref: ${{ inputs.nightly_tag_main || github.ref }}
- name: "Setup Environment"
uses: ./.github/actions/setup-uv
with:
ref: ${{ inputs.nightly_tag_main || github.ref }}
- name: Restart HuggingFace Spaces Build
run: |