Skip to content

v0.1.0: PDF-Helper is now an installable package! #1

v0.1.0: PDF-Helper is now an installable package!

v0.1.0: PDF-Helper is now an installable package! #1

Workflow file for this run

name: pypi
on:
push:
branches:
- "master"
jobs:
build-and-publish:
name: build and publish
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv
- name: Build
run: |
uv build
pip install dist/*.whl
echo "PACKAGE_VERSION=$(pip show pdf-helper | grep '^Version: ' | cut -d ' ' -f 2)" >> $GITHUB_ENV
- name: check-version
uses: KyoriPowered/action-regex-match@v3
id: check-version
with:
text: ${{ env.PACKAGE_VERSION }}
regex: '\d+\.\d+\.\d+a\d+'
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
if: ${{ steps.check-version.outputs.match == '' }} # If didn't match