StarRailDamageCal/.github/workflows/release.yml
2023-10-30 14:40:45 +08:00

26 lines
537 B
YAML

name: Release
on:
workflow_dispatch:
jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- uses: pdm-project/setup-pdm@v3
- name: Publish package distributions to PyPI
run: pdm publish