Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lidongze0629 committed Jul 3, 2024
1 parent 98985f4 commit 1668593
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,20 @@ jobs:
# move wheels into one folder to upload to PyPI
mkdir ${GITHUB_WORKSPACE}/upload_pypi
mv ${GITHUB_WORKSPACE}/python/dist/*.whl ${GITHUB_WORKSPACE}/upload_pypi/
cd ${GITHUB_WORKSPACE}
tar -zcf gsctl.tar.gz ${GITHUB_WORKSPACE}/upload_pypi/*.whl
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: gsctl-${{ github.sha }}
path: |
gsctl.tar.gz
retention-days: 5

- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.2
if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope'
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
Expand Down

0 comments on commit 1668593

Please sign in to comment.