Skip to content

Production deployment #3

Production deployment

Production deployment #3

name: Production deployment
on: workflow_dispatch
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
lfs: true
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 18
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Install and Build
run: |
cd www
npm install
npm run build
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
token: ${{ secrets.GHPAGES_TOKEN }}
repository-name: Acelya-9028/Acelya-9028.github.io
branch: gh-pages
folder: www/dist
clean: true