mirror of
https://github.com/open-goal/jak-project
synced 2026-07-03 13:00:50 -04:00
7117a512c7
* docs: refresh the homepage * docs: basic gallery support added * homepage background image back to jpg * docs: remove data file tracker, as it's soon to be removed
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: Re-build Doc Site
|
|
|
|
# Controls when the action will run. Triggers the workflow on push or pull request
|
|
# events but only for the master branch
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- 'goal_src/**'
|
|
- 'docs/gh-pages-proj/**'
|
|
|
|
jobs:
|
|
lint:
|
|
name: Update Documentation Site
|
|
runs-on: ubuntu-20.04
|
|
# Set some sort of timeout in the event of run-away builds. We are limited on concurrent jobs so, get rid of them.
|
|
timeout-minutes: 10
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Update Line Count
|
|
run: python ./.github/scripts/update-file-progress.py
|
|
|
|
- name: Update Gallery Links
|
|
run: python ./.github/scripts/update-gallery.py
|
|
|
|
- name: Update Site
|
|
run: |
|
|
cd docs/gh-pages-proj
|
|
npm ci
|
|
npm run build
|
|
cd ../..
|
|
rm -r ./docs/css
|
|
rm -r ./docs/img
|
|
rm -r ./docs/js
|
|
cp -r ./docs/gh-pages-proj/dist/* ./docs/
|
|
|
|
- name: Add & Commit
|
|
uses: EndBug/add-and-commit@v7.2.1
|
|
with:
|
|
default_author: github_actions
|
|
pull_strategy: "NO-PULL"
|
|
message: "Updated github pages site"
|