Skip to content

Notes for Game Theory #15

Notes for Game Theory

Notes for Game Theory #15

Workflow file for this run

name: Build & Deploy
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build-and-deploy:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20.13.1]
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install Dependencies
run: pnpm i --frozen-lockfile
- name: Build
run: pnpm run build
- name: Copy public/ to dist/
run: cp -r public/ dist/
- uses: a7ul/tar-action@v1.2.0
with:
command: c
cwd: "./"
files: |
./dist
Dockerfile
default.conf
captain-definition
outPath: deploy.tar
- name: Deploy App to CapRover
uses: caprover/deploy-from-github@v1.0.1
with:
server: "${{ secrets.CAPROVER_SERVER }}"
app: "${{ secrets.CAPROVER_NAME }}"
token: "${{ secrets.CAPROVER_KEY }}"