Server Release #32
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@v4 | |
- uses: actions/setup-python@v5 | |
name: Ensure Python Runtime | |
with: | |
python-version: '3.11' | |
architecture: 'x64' | |
- name: Ensure PDM | |
run: | | |
python3 -m pip install pdm==2.13.2 pdm-mina "mina-build<0.6" "pdm-backend<2.4.0" | |
- name: Build Package | |
run: | | |
export MINA_BUILD_TARGET=server && pdm mina build server --no-isolation | |
- 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 }} |