Python package #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python package | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
workflow_dispatch: | |
inputs: | |
release: | |
description: Make Release | |
required: true | |
type: boolean | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi | |
url: https://pypi.org/p/graiax-playwright | |
permissions: | |
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install PDM | |
uses: pdm-project/setup-pdm@v4 | |
- name: Build Package | |
run: | | |
pdm install | |
pdm build | |
- name: Publish to PyPI | |
if: ${{ github.event_name == 'push' }} || ${{ github.event.inputs.release == 'true' }} | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
skip-existing: true |