Skip to content

Commit

Permalink
testing new publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfcabral committed Mar 11, 2024
1 parent 44a9a0d commit 2abecb7
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,30 @@
name: Build and publish python package

name: Release
on:
release:
types: [ published ]
types:
- created

jobs:
publish-service-client-package:
runs-on: ubuntu-latest
permissions:
contents: write
publish:
strategy:
fail-fast: false
matrix:
python-version: [3.9]
poetry-version: [1.1.2]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Publish PyPi package
uses: code-specialist/pypi-poetry-publish@v1
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/[email protected]
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_REGISTRY_PASSWORD: ${{ secrets.PYPI_TOKEN }}
poetry-version: ${{ matrix.poetry-version }}
- name: Publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish --build

0 comments on commit 2abecb7

Please sign in to comment.