Skip to content

Commit

Permalink
Update python-publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
omercnet authored Apr 21, 2023
1 parent 7dfb05e commit 0581729
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/python-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: Publish
name: Python Publish

on:
release:
types: [created]

permissions:
packages: write
contents: read
pull-requests: read # to detect changes files

jobs:
python:
name: Python
pypi:
name: Pypi
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: descope/.github/.github/actions/python/poetry/setup@main
- name: Build
uses: descope/.github/.github/actions/python/poetry/build@main
with:
python-version: "3.8"
- name: Autobump version
run: |
poetry version $(git describe --tags --abbrev=0)
- name: Build
uses: descope/.github/.github/actions/python/poetry/build@main
- name: Publish
uses: descope/.github/.github/actions/python/pypi@main
uses: descope/.github/.github/actions/python/poetry/publish@main
with:
test: no
token: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 0581729

Please sign in to comment.