-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 959 Bytes
/
main.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
name: Build
on:
push:
tags:
- '*' # Will run when any tag is pushed
jobs:
build_wheels:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Build wheels
run: pip wheel --no-deps . -w dist
- uses: actions/upload-artifact@v3
with:
name: dist
path: ./dist/*.whl
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
needs: build_wheels
environment:
name: publish
url: https://pypi.org/p/revolve2-robohat
permissions:
id-token: write
steps:
- name: Download dist artifact
uses: actions/download-artifact@v3
with:
name: dist
path: dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1