Skip to content

Feat/check-v2 common packages under open cepk #10

Feat/check-v2 common packages under open cepk

Feat/check-v2 common packages under open cepk #10

---
name: Publish Python 🐍 distributions 📦 to PyPI
on:
workflow_run:
workflows: ["pre-commit"]
types:
- completed
pull_request:
branches:
- main
- feat/check-v2
jobs:
build:
name: test the package build
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v5.1.0
with:
python-version: 3.11
- name: Run test-pre-commit-hook.sh for check version package
run: |
pip3 install .
pip3 install ".[dep]"
build-n-publish:
needs: build
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v5.1.0
with:
python-version: 3.11
- name: Install pip packages
run: pip install twine build setuptools
- name: Build the package
run: python -m build
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true