Skip to content

Build & Release

Build & Release #16

# Action name here
name: Build & Release
on:
# Allows manual triggering
workflow_dispatch:
inputs:
build_tag:
description: Version tag
type: string
required: true
jobs:
build-app:
name: Build executable
runs-on: [ubuntu-latest]
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.build_tag }}
set-safe-directory: true
- name: Setup environment
uses: ./.github/actions/setup-env
- name: Build executable
run: |
rm -rf dist
python3 -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1