Skip to content

Merge pull request #26 from kilork/dependabot/npm_and_yarn/kr-engne/w… #48

Merge pull request #26 from kilork/dependabot/npm_and_yarn/kr-engne/w…

Merge pull request #26 from kilork/dependabot/npm_and_yarn/kr-engne/w… #48

Workflow file for this run

name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: write
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jetli/[email protected]
with:
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest')
version: 'v0.10.0'
- name: Build wasm-pack
run: wasm-pack build
working-directory: ./kr-engne
- name: Install node packages
run: npm install
working-directory: ./kr-engne/www
- name: Build dist
run: npm run build
working-directory: ./kr-engne/www
- name: Deploy dist to Github Pages
uses: JamesIves/github-pages-deploy-action@v4
if: ${{ github.ref == 'refs/heads/master' }}
with:
branch: master
folder: kr-engne/www/dist
repository-name: kilork/kilork.github.io
token: ${{ secrets.PAT }}
target-folder: kr-engne
clean: true