Skip to content

Commit

Permalink
ci: remove unecessary default working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
frascuchon committed Jun 14, 2024
1 parent cd80a29 commit b96a936
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/argilla-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,34 +119,34 @@ jobs:
needs:
- build

defaults:
run:
shell: bash -l {0}
working-directory: argilla-v1

steps:
- name: Checkout Code 🛎
uses: actions/checkout@v4

- name: Download python package
uses: actions/download-artifact@v4
with:
name: argilla-v1
path: dist

- name: Read package info
run: |
pip install --no-deps dist/*.whl
PACKAGE_VERSION=$(python -c 'from importlib.metadata import version; print(version("argilla-v1"))')
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_ENV
echo "PACKAGE_NAME=argilla-v1" >> $GITHUB_ENV
echo "$PACKAGE_NAME==$PACKAGE_VERSION"
- name: Publish Package to TestPyPI 🥪
uses: pypa/gh-action-pypi-publish@release/v1
continue-on-error: true
with:
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 $PACKAGE_NAME==$PACKAGE_VERSION

- name: Publish Package to PyPI 🥩
uses: pypa/gh-action-pypi-publish@release/v1
if: ${{ github.event_name == 'release' }}

0 comments on commit b96a936

Please sign in to comment.