Skip to content

Commit

Permalink
fix: manual publish
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjermiah committed Dec 17, 2023
1 parent 76fd46f commit 929313c
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ jobs:
# Set up operating system
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
# Define job steps
steps:
Expand Down Expand Up @@ -79,16 +77,23 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

# - name: Publish package distributions to GitHub Releases
- name: Build and Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
build: true
build_command: poetry build
build_command_postfix: dist/*
- name: Publish package distributions to PyPI
run:
pip install twine wheel semantic-release
poetry version $(semantic-release print-version)
poetry build
twine upload dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}

# # - name: Publish package distributions to GitHub Releases
# - name: Build and Publish
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository_url: https://test.pypi.org/legacy/
# build: true
# build_command: poetry build
# build_command_postfix: dist/*

# - name: Publish package distributions to PyPI
# id: pypi-publish
Expand Down

0 comments on commit 929313c

Please sign in to comment.