-
-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (41 loc) · 1.1 KB
/
pypi-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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Release to PyPI
on:
release:
types: [ published ]
concurrency:
group: pypi-release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ vars.PYTHON_VERSION }}
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python3 -
- name: Validate Release Version
run: poetry version -s | grep -E "$(echo "$GITHUB_REF_NAME" | tr -d 'v')"
- name: Build Basilisp distributions
run: poetry build
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
path: dist/
if-no-files-found: error
release:
runs-on: ubuntu-latest
environment:
name: release
needs:
- build
permissions:
id-token: write
steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
path: dist/
merge-multiple: true
- name: Publish package distributions to PyPI
uses: pypa/[email protected]