-
Notifications
You must be signed in to change notification settings - Fork 26
46 lines (38 loc) · 1 KB
/
build_nightly.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
46
name: Build Nightly
on:
push:
branches: [ main, dev ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.8" ]
permissions:
id-token: write
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Build wheels
run: pip3 install setuptools build --upgrade && python -m build -w
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
path: ./dist/*.whl
- name: Update Nightly Release
uses: andelf/nightly-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: nightly
name: 'Nightly Release'
prerelease: true
body: 'Nightly release.'
files: |
./dist/*.whl