Skip to content

Commit

Permalink
Update release-please.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sellth authored Jan 18, 2024
1 parent b18117d commit 7dd1d92
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,27 @@ jobs:
package-name: altamisa
token: ${{ secrets.BOT_TOKEN }}

build-publish:
runs-on: ubuntu-latest
needs: release
steps:
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
with:
fetch-depth: 0

- name: Set up Python
if: ${{ steps.release.outputs.release_created }}
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Checkout repository
uses: actions/checkout@v3
- name: Build package
if: ${{ steps.release.outputs.release_created }}
run: |
python -m pip install --upgrade pip
pip install -U setuptools
python setup.py sdist
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
- name: Publish to PyPI
if: ${{ steps.release.outputs.release_created }}
uses: pypa/gh-action-pypi-publish@master
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 7dd1d92

Please sign in to comment.