Skip to content

Potential fix for code scanning alert no. 2: Workflow does not contai… #789

Potential fix for code scanning alert no. 2: Workflow does not contai…

Potential fix for code scanning alert no. 2: Workflow does not contai… #789

Workflow file for this run

name: Build wheels
permissions:
contents: read
on:
- push
- pull_request
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Build wheel
run: pipx run build
- uses: actions/upload-artifact@v6
with:
path: dist/*.whl
upload_pypi:
name: Upload
runs-on: ubuntu-latest
needs: build
environment:
name: pypi
url: https://pypi.org/project/qmp-kit/
permissions:
id-token: write
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v7
with:
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1