Nightly #533
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-package' }} | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout the repository | |
uses: actions/[email protected] | |
with: | |
submodules: recursive | |
- name: Update submodule | |
run: | | |
git submodule update --remote | |
- 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: dist/*.whl | |
if-no-files-found: error |