-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 964 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Release
# https://pypi.org/help/#apitoken
# Controls when the action will run.
on:
# Triggers the workflow github release creation
release:
types: [published]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
- name: Init virtualenv
run: make .venv PYTHON_VERSION=python3.8
- name: Build source distribution & universal 3.x wheel
run: make dist
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}