-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (36 loc) · 1.24 KB
/
update.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
name: Automatic update
on:
push:
branches: [ master ]
workflow_dispatch:
repository_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Perform Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Setup Deno
# uses: denoland/setup-deno@v1
uses: denoland/setup-deno@004814556e37c54a2f6e31384c9e18e983317366
with:
deno-version: v1.x
- name: Clone horizon
run: git clone https://github.com/TheUltimateFoxOS/horizon.git --branch "main"
- name: Build horizon docs
run: cd horizon; deno run -A tools/doc/main.ts ${{ secrets.DEV_HOOK }}; cp -rv docs ../src/docs
- name: Build files
run: node build.js
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out
publish_branch: gh-pages
- name: Send request to server
run: curl -X POST -F 'secret=${{ secrets.PHP_UPDATE_SECRET }}' -F 'updatedocs=false' https://theultimatefoxos.dev/kerneldoc-update.php
- name: Tell google to check sitemap
run: sleep 30 && curl https://www.google.com/ping?sitemap=https://theultimatefoxos.dev/sitemap.xml