Skip to content

Consolidate and Deploy #637

Consolidate and Deploy

Consolidate and Deploy #637

Workflow file for this run

name: Consolidate and Deploy
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
schedule:
- cron: "0 10 */1 * *" # At 10:00 UTC on every day-of-month
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install python 🐍
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install
run: |
sudo apt install -y yarn
python -m pip install --upgrade poetry
mkdir build
- name: Build manifest
run: |
poetry install
poetry run blueos_repository/consolidate.py
mv manifest.json build/
- name: Build website
run: |
cd website
yarn install --frozen-lockfile
yarn build
mv dist/* ../build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build # The folder the action should deploy.
if: github.event_name != 'pull_request'