Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahammurciano authored Jun 3, 2024
1 parent f8545a7 commit 477dedf
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
python-version: 3.7
- name: Get Poetry
uses: abatilo/actions-poetry@v2.1.3
run: pip install poetry
- name: Set Version
run: poetry version $(echo ${{ github.event.release.tag_name }} | cut -d 'v' -f 2)
- name: Build Package
Expand All @@ -25,13 +25,5 @@ jobs:
run: pip install dist/*.whl
- name: Set environment variables for conda build
run: echo "POETRY_VERSION=$(poetry version -s)" >> $GITHUB_ENV
- name: Build and Publish Conda Package
uses: amauryval/[email protected]
with:
CondaDir: 'conda-recipe'
Channels: 'conda-forge ${{ secrets.ANACONDA_USERNAME }}'
Platforms: 'noarch'
CondaUsername: ${{ secrets.ANACONDA_USERNAME }}
CondaPassword: ${{ secrets.ANACONDA_PASSWORD }}
- name: Publish Pip Package
run: poetry publish -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }}
run: poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }}

0 comments on commit 477dedf

Please sign in to comment.