Skip to content

2024.4.7

2024.4.7 #27

Workflow file for this run

# SPDX-License-Identifier: MIT
name: Release & Upload
on:
workflow_dispatch:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies & build
run: |
pip install -U pip
pip install build
python -m build
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1