Consolidate and Deploy #637
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: 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' |