-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
13 changed files
with
43 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.