Skip to content

Commit

Permalink
Publish docs from branch
Browse files Browse the repository at this point in the history
Builds it automatically and push it to gh-pages rather than having manually build it and push it to the root of the repo.
  • Loading branch information
Senryoku committed Nov 20, 2023
1 parent a8f10d0 commit e02e380
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 80 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Generate a www build and push to gh-page

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
name: Build and Push
steps:
- name: git-checkout
uses: actions/checkout@v4

- name: ts-lib/Install all dependencies
working-directory: ./ts-lib
run: npm ci

- name: ts-lib/Build
working-directory: ./ts-lib
run: npm run build

- name: www/Install all dependencies
working-directory: ./www
run: npm i

- name: www/Build
working-directory: ./www
run: npm run build

- name: Copy index.html to 404.html
working-directory: ./www
run: cp dist/index.html dist/404.html

- name: Push
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: www/dist
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE: "Build: ({sha}) {msg}"
14 changes: 0 additions & 14 deletions docs/404.html

This file was deleted.

1 change: 0 additions & 1 deletion docs/assets/1MB-vpti1EjA.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/assets/512KB-YewMzdiQ.js

This file was deleted.

7 changes: 0 additions & 7 deletions docs/assets/BenchmarksView-0oFLLmB5.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/assets/DocumentationView-g15RyJcA.js

This file was deleted.

24 changes: 0 additions & 24 deletions docs/assets/LibBenchmark-X0vqem0N.js

This file was deleted.

15 changes: 0 additions & 15 deletions docs/assets/index-IZBqudEO.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/assets/index-cO3dcCgJ.css

This file was deleted.

1 change: 0 additions & 1 deletion docs/assets/rw_large-lwjcxA9G.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/assets/rw_medium-5FYgPR2Z.js

This file was deleted.

Binary file removed docs/favicon.ico
Binary file not shown.
14 changes: 0 additions & 14 deletions docs/index.html

This file was deleted.

0 comments on commit e02e380

Please sign in to comment.