-
Notifications
You must be signed in to change notification settings - Fork 20
50 lines (42 loc) · 1.1 KB
/
deploy.yml
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
44
45
46
47
48
49
50
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'