-
-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: enhance publish action and authors in pyproject.toml
- Loading branch information
1 parent
acdd523
commit dc5f2b6
Showing
1 changed file
with
10 additions
and
9 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 |
---|---|---|
|
@@ -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]" | ||
|
||
|
@@ -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 |