Skip to content

Commit

Permalink
ci: Prepare argilla-v1 workflow for release
Browse files Browse the repository at this point in the history
  • Loading branch information
frascuchon committed Jun 14, 2024
1 parent 8eb57c9 commit 85675b1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/argilla-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ jobs:
pip install -U build
rm -rf dist && python -m build
- name: Read package info
run: |
PACKAGE_VERSION=$(python -c "import argilla_v1; print(argilla_v1.__version__)")
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_ENV
echo "PACKAGE_NAME=argilla-v1 >> $GITHUB_ENV
echo "$PACKAGE_NAME==$PACKAGE_VERSION"
- name: Upload package artifact
uses: actions/upload-artifact@v4
with:
Expand All @@ -109,7 +116,6 @@ jobs:
publish_release:
name: Publish Release
runs-on: ubuntu-latest
if: ${{ github.event_name == 'release' }}

needs:
- build
Expand All @@ -136,10 +142,10 @@ jobs:
repository_url: https://test.pypi.org/legacy/
- name: Test Installing 🍿
continue-on-error: true
run: pip install --index-url https://test.pypi.org/simple --no-deps argilla==${GITHUB_REF#refs/*/v}

run: pip install --index-url https://test.pypi.org/simple --no-deps $PACKAGE_NAME==$PACKAGE_VERSION
- name: Publish Package to PyPI 🥩
uses: pypa/gh-action-pypi-publish@release/v1
if: ${{ github.event_name == 'release' }}
with:
user: __token__
password: ${{ secrets.AR_PYPI_API_TOKEN }}

0 comments on commit 85675b1

Please sign in to comment.