Files
jak-project/.github/workflows/build-doc-app.yaml
T
Tyler Wilding 7117a512c7 docs: Refresh the homepage and add some basic gallery support (#1051)
* 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
2022-01-04 21:05:27 -05:00

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"