Skip to content

refactor: moved #85

refactor: moved

refactor: moved #85

Workflow file for this run

name: Deploy Tiddlywiki To Github Pages
on:
push:
branches:
- master
- main
paths-ignore:
- '*.md'
jobs:
deploy:
permissions:
contents: write
pages: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 'latest'
run_install: false
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
**/node_modules
~/.pnpm-store
~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
${{ runner.os }}-node-
- name: Install Dependencies
run: pnpm install
# Build Rust
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install Rust WASM toolchain
run: rustup target add wasm32-unknown-unknown && cargo install -f wasm-bindgen-cli --version 0.2.92
- name: Build example game WASM
run: pnpm run build:game
# Build TS
- name: Build Library and static website
run: pnpm run publish
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: ./dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1