Skip to content

Commit

Permalink
Fix the GITHUB_WORKSPACE artifact sharing issue
Browse files Browse the repository at this point in the history
GITHUB_WORKSPACE will be reset in each job step which makes artifact not sharable between artifact build and upload steps.

Signed-off-by: Jiaxin Shan <[email protected]>
  • Loading branch information
Jeffwan committed Dec 16, 2024
1 parent 2148dc3 commit 947e21d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,12 @@ jobs:
run: |
cd python/aibrix
poetry build
mkdir -p $GITHUB_WORKSPACE/artifacts
cp dist/* $GITHUB_WORKSPACE/artifacts/
ls -al dist/*
- name: Upload release artifacts
uses: actions/upload-artifact@v4
with:
name: aibrix-python-packages
path: $GITHUB_WORKSPACE/artifacts/
path: python/aibrix/dist/*.whl

artifact-release:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -172,4 +171,6 @@ jobs:
prerelease: ${{ env.prerelease }}
files: |
aibrix-dependency-${{ github.ref_name }}.yaml
aibrix-core-${{ github.ref_name }}.yaml
aibrix-core-${{ github.ref_name }}.yaml
aibrix-*.whl
aibrix-python-packages/aibrix-*.whl

0 comments on commit 947e21d

Please sign in to comment.