-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.01 KB
/
release.yml
File metadata and controls
44 lines (37 loc) · 1.01 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
---
name: 🕊️ Release Workflow
on:
push:
branches:
- main
# Limit workflow to one job per branch.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
env:
STABLE_PYTHON_VERSION: '3.12.3'
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"
jobs:
release-workflow:
name: 🏹 Release Workflow
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: 📩 Checkout the source w/ full depth(for tags and SCM)
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 🐍 Setup Python ${{ env.STABLE_PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.STABLE_PYTHON_VERSION }}
- name: 🧱 Build wheel
run: |
make build
- name: 🐦 Release wheel
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ SECRETS.PYPI_TOKEN }}
packages_dir: dist
verbose: true