Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
Update publish_package.yml (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
waynehamadi authored Jul 23, 2023
1 parent 58e85ad commit 6407e25
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,25 @@ jobs:
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Build project for distribution
run: poetry build

- name: Install dependencies
run: poetry install
- name: Check Version
id: check-version
run: |
echo version=$(poetry version --short) >> $GITHUB_OUTPUT
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
generateReleaseNotes: true
tag: v${{ steps.check-version.outputs.version }}
commit: master

- name: Build and publish
run: poetry publish --build -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}
run: poetry publish -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 6407e25

Please sign in to comment.