-
-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement gh-page workflow on release
- Loading branch information
1 parent
f673cbc
commit 7a329f9
Showing
2 changed files
with
38 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 |
---|---|---|
|
@@ -16,3 +16,38 @@ jobs: | |
- run: cargo login ${CARGO_REGISTRY_TOKEN} | ||
- run: cargo publish | ||
working-directory: boa | ||
doc-publish: | ||
needs: publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
ref: master | ||
- uses: actions/[email protected] | ||
with: | ||
ref: gh-pages | ||
path: dist | ||
- name: Install wasm-pack | ||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||
- uses: Borales/[email protected] | ||
with: | ||
cmd: install | ||
- name: Cache yarn build | ||
uses: actions/[email protected] | ||
with: | ||
path: | | ||
node_modules | ||
target | ||
boa_wasm/pkg | ||
key: ${{ runner.os }}-yarn-build-target-${{ hashFiles('**/yarn.lock') }} | ||
- uses: Borales/[email protected] | ||
with: | ||
cmd: build | ||
- uses: actions/[email protected] | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add . | ||
git commit -m "Deploy to GitHub pages" | ||
git push | ||
git push --prefix dist origin gh-pages |
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