Files
PSO/.github/workflows/pypi.yml
jung-geun 3250febdb8 23-09-04
pypi 패키지 배포 실험
2023-09-04 15:02:33 +09:00

38 lines
843 B
YAML

name: PyPI package
on:
push:
paths:
- "setup.py"
- "pso/__init__.py"
permissions:
contents: read
packages: write
jobs:
build-linux:
runs-on: ubuntu-22.04
strategy:
max-parallel: 5
matrix:
python-version: [3.8, 3.9, 3.10, 3.11]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}