-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8545a7
commit 477dedf
Showing
1 changed file
with
2 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} |