forked from home-assistant/intents
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 923 Bytes
/
nightly.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
40
41
42
43
name: Nightly
on:
workflow_dispatch:
schedule:
- cron: "0 1 * * *"
env:
PYTHON_VERSION: "3.10"
permissions:
actions: none
jobs:
nightly:
name: Nightly
runs-on: ubuntu-latest
if: ${{ github.repository == 'home-assistant/intents' }}
permissions:
contents: write
steps:
- name: Checkout the repository
uses: actions/[email protected]
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: |
script/setup && \
python3 -m pip install build
- name: Build nightly Python package
run: script/package
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: package
path: package/dist/*.whl
if-no-files-found: error