-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 989 Bytes
/
build.yaml
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
name: build
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
schedule:
- cron: '0 9 * * *'
workflow_dispatch:
jobs:
build:
runs-on: self-hosted-macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
lfs: true
- name: Install dependencies
run: scripts/install-dependencies.sh
- name: Build the index
env:
INDEXER_ASSETS_DIRECTORY: /Users/jbmorley/psion-software-index/assets
run: |
mkdir -p "$INDEXER_ASSETS_DIRECTORY"
tools/indexer libraries/full.yaml sync index overlay
- name: Build site
run: |
scripts/build-site.sh
chmod -v -R +rX "_site/"
- name: Deploy site
if: github.ref == 'refs/heads/main'
env:
ANSIBLE_SSH_KEY: ${{ secrets.ANSIBLE_SSH_KEY }}
ANSIBLE_BECOME_PASS: ${{ secrets.ANSIBLE_BECOME_PASS }}
run: |
ansible/deploy.py