Skip to content

Commit

Permalink
fix: enhance publish action and authors in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mustaballer committed Aug 11, 2023
1 parent acdd523 commit dc5f2b6
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/release-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ jobs:
uses: relekang/python-semantic-release@master
with:
github_token: ${{ secrets.ADMIN_TOKEN }} # Use the new token for authentication
repository_username: __token__
repository_password: ${{ secrets.PYPI_TOKEN }}
git_committer_name: "OpenAdapt Bot"
git_committer_email: "[email protected]"

Expand All @@ -34,12 +32,15 @@ jobs:
with:
ref: main
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Build and publish to PyPI
uses: JRubics/[email protected]
with:
python_version: "3.10"
poetry_version: "==1.5.1"
pypi_token: ${{ secrets.PYPI_TOKEN }}
- name: Publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
pip install poetry
poetry install
poetry config pypi-token.pypi $PYPI_TOKEN
poetry build
poetry publish --no-interaction --skip-existing

0 comments on commit dc5f2b6

Please sign in to comment.