Skip to content

Automatic Deploy (Client) #58

Automatic Deploy (Client)

Automatic Deploy (Client) #58

Workflow file for this run

name: Automatic Deploy (Client)
on:
workflow_dispatch:
push:
tags:
- 'v*'
jobs:
build:
name: Automatic Deploy (Client)
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [macos-latest, ubuntu-latest, windows-latest]
os: [ubuntu-latest]
node-version: [18.10.x]
steps:
- uses: actions/checkout@v2
- run: git fetch --prune --unshallow --tags
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm run install:client
- run: cd client && npm run build:netlify
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './client/www'
production-branch: master
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: 'Deploy from GitHub Actions'
enable-pull-request-comment: false
enable-commit-comment: false
overwrites-pull-request-comment: true
production-deploy: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}