Skip to content

deploy

deploy #3

Workflow file for this run

name: deploy
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build and Check Package
uses: hynek/[email protected]
deploy:
needs: [package]
if: github.repository == 'pytest-dev/pytest-qt'
runs-on: ubuntu-latest
environment: deploy
permissions:
id-token: write # For PyPI trusted publishers.
contents: write # For release.
steps:
- uses: actions/checkout@v3
- name: Download Package
uses: actions/download-artifact@v3
with:
name: Packages
path: dist
- name: Publish package to PyPI
uses: pypa/[email protected]
- name: GitHub Release
uses: softprops/action-gh-release@v1
with:
files: dist/*