Skip to content

Commit

Permalink
Update build-and-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cobycloud authored Nov 7, 2024
1 parent a18bdcc commit 0414daf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Build and Publish

on:
push:
branches:
- master
tags:
- 'v*' # Trigger on tags that start with "v"
pull_request:
Expand Down Expand Up @@ -63,10 +65,7 @@ jobs:
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags/v')
uses: pypa/[email protected]
env:
POETRY_PYPI_USERNAME: ${{ secrets.POETRY_PYPI_USERNAME }}
POETRY_PYPI_API_TOKEN: ${{ secrets.POETRY_PYPI_API_TOKEN }}
with:
user: ${{ secrets.POETRY_PYPI_USERNAME }}
password: ${{ secrets.POETRY_PYPI_API_TOKEN }}
password: ${{ matrix.pkg-dir == 'pkgs/crouton' && secrets.POETRY_PYPI_CROUTON_API_TOKEN || secrets.POETRY_PYPI_CROUTON_CLIENT_API_TOKEN }}
packages_dir: ${{ matrix.pkg-dir }}/dist

0 comments on commit 0414daf

Please sign in to comment.