Skip to content

flimsybird: Decrease depth #37

flimsybird: Decrease depth

flimsybird: Decrease depth #37

Workflow file for this run

name: GitHub Pages
on:
push:
branches: [ "master" ]
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
deployment:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Checkout pages
uses: actions/checkout@v3
with:
path: 'pages'
ref: 'gh-pages'
ssh-key: ${{ secrets.DEPLOY_KEY }}
repository: 'francorbacho/francorbacho.github.io'
- name: Reconfigure gitignore
run: sed -i '/web\/pkg/d' .gitignore
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Install wasm-pack
uses: baptiste0928/cargo-install@v2
with:
crate: wasm-pack
- name: Build
run: ./web/deploy.sh --copy --low-nbits
- name: Deploy
run: |
commit=$(git rev-parse HEAD)
cd pages/
rm -rf chess
mv ../web/ chess
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
git add chess
git commit -m "deploy francorbacho/cheng@$commit"
git push