Skip to content

Commit

Permalink
Add github pages site deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Easyoakland committed Aug 9, 2023
1 parent e3aca88 commit f39edfe
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Pages
on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
# - name: Dump github context
# run: echo "$GITHUB_CONTEXT"
# shell: bash
# env:
# GITHUB_CONTEXT: ${{ toJson(github) }}
- name: Setup | Checkout
uses: actions/checkout@v3
- name: Setup wasm32 target
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true
- name: Download trunk
uses: taiki-e/install-action@v2
with:
tool: trunk
- name: Build
run: trunk build --release --public-url ${{ github.event.repository.name }}
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/target
/dist
.*
!.github
!.gitignore

0 comments on commit f39edfe

Please sign in to comment.