-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.02 KB
/
wheel.yaml
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
name: Create and publish Python package
on:
push:
jobs:
build:
runs-on:
- ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-tags: true
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Build wheel
working-directory: python
run: pip wheel --no-deps -w dist .
- uses: actions/upload-artifact@v4
with:
path: python/dist/*.whl
# TODO: Uncomment me when GB PyPI account is setup
# publish:
# name: Upload release to PyPI
# runs-on:
# - gb-arc-staging
# environment:
# name: pypi
# url: https://pypi.org/p/greenbids-tailor
# permissions:
# id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
# steps:
# - uses: actions/download-artifact@v4
# with:
# path: dist/
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1