Skip to content

Add link to gameplay demo #49

Add link to gameplay demo

Add link to gameplay demo #49

Workflow file for this run

name: CI/CD
on:
push:
branches: [ master ]
jobs:
lint:
runs-on: ubuntu-latest
name: Run Prettier and ESLint
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js environment
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Run Prettier and ESLint
run: |
yarn format:check
yarn lint
build-and-deploy:
needs: lint
runs-on: ubuntu-latest
name: Build and Deploy
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js environment
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
- name: Copying files to server
uses: appleboy/scp-action@master
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USER }}
port: ${{ secrets.REMOTE_PORT }}
key: ${{ secrets.SSH_KEY }}
rm: true
strip_components: 1
source: "dist/*"
target: ${{ secrets.REMOTE_DIR }}