Server Release #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Server Release | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Release Version' | |
required: true | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
name: Ensure Python Runtime | |
with: | |
python-version: '3.x' | |
architecture: 'x64' | |
- name: Ensure PDM & twine | |
run: | | |
python3 -m pip install pdm pdm-mina mina-build | |
- name: Build Package | |
run: | | |
pdm mina build server | |
- name: Publish Package | |
run: | | |
pdm publish --no-build | |
gh release upload --clobber ${{ inputs.version }} dist/*.tar.gz dist/*.whl | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |