Skip to content

Merge pull request #21 from rosslh/rosslh/credit-contributors #98

Merge pull request #21 from rosslh/rosslh/credit-contributors

Merge pull request #21 from rosslh/rosslh/credit-contributors #98

Workflow file for this run

name: Deploy
on:
push:
branches: [master]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- uses: actions/setup-node@v2
with:
node-version: "18.14"
- name: Install dependencies
working-directory: ./client
run: |
npm i
- name: Build project
working-directory: ./client
run: |
npm run build
- name: Publish
uses: netlify/actions/cli@master
with:
args: deploy --dir=client/dist --prod
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_DEPLOY_TO_PROD: true