-
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.
- Loading branch information
1 parent
b4ed5e3
commit e7ff62e
Showing
2 changed files
with
49 additions
and
0 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,49 @@ | ||
name: Build TensorNote for Web | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- "release-web" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: latest | ||
|
||
- name: Setup pnpm | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: latest | ||
|
||
- name: Setup wasm-pack | ||
- uses: jetli/[email protected] | ||
with: | ||
version: latest | ||
|
||
- name: Add wasm32-unknown-unknown build target | ||
- run: rustup target add wasm32-unknown-unknown | ||
|
||
- name: Build | ||
run: | | ||
pnpm install | ||
pnpm vite build | ||
- name: Deploy | ||
uses: peaceiris/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
#publish_dir is the folder on the docker instance which eleventy builds the pages to. | ||
#it is not the docs folder in the repository | ||
publish_dir: build | ||
#publish_branch is the branch in the repository. | ||
#this is where you need to point GitHub pages | ||
publish_branch: gh-pages |