Skip to content

[AR] HassShoppingListAddItem (#2509) #121

[AR] HassShoppingListAddItem (#2509)

[AR] HassShoppingListAddItem (#2509) #121

Workflow file for this run

name: Deploy to GitHub Pages
env:
NODE_VERSION: 16
on:
push:
branches: ["main"]
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# Build job
build:
runs-on: ubuntu-latest
if: ${{ github.repository == 'home-assistant/intents' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Set up Node ${{ env.NODE_VERSION }}
uses: actions/[email protected]
with:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Install Python dependencies
run: script/setup
- name: Install JavaScript dependencies
run: cd website && npm ci
- name: Build site
run: website/script/build
- name: Upload artifact
uses: actions/[email protected]
with:
path: website/dist
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]