Skip to content

Release

Release #4

Workflow file for this run

name: Release
on:
workflow_dispatch:
env:
GITHUB_ACTIONS: true
jobs:
Pypi:
strategy:
matrix:
python-version: ["3.11"]
pkg-name: ["kaiming-ascii", "cvpr", "eccv", "aaai", "ijcai", "icml"]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: pdm-project/setup-pdm@v3
name: Setup PDM
with:
python-version: ${{ matrix.python-version }}
architecture: x64
version: 2.11.1
prerelease: false
enable-pep582: false
allow-python-prereleases: false
update-python: true
- name: Check Python version
run: |
python --version
- name: Build package
run: |
cd packages/${{ matrix.pkg-name }}
pdm build
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API }}
packages-dir: packages/${{ matrix.pkg-name }}/dist
continue-on-error: true