Skip to content

testing push

testing push #64

Workflow file for this run

name: Deploy cal.moe website
on:
workflow_dispatch:
push:
branches:
- master
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
env:
CALMOE_BASE_URL: ${{ secrets.BASE_URL }}
DISCORD_CLIENT_ID: ${{ secrets.DISCORD_CLIENT_ID }}
DISCORD_CLIENT_SECRET: ${{ secrets.DISCORD_CLIENT_SECRET }}
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7
- uses: actions/setup-node@v3
with:
node-version: latest
cache: 'pnpm'
- run: pnpm install
- run: pnpm build
- run: cp package.json build/
- run: cp -r prisma build/
- uses: burnett01/rsync-deployments@5.2.1
with:
switches: -avzr --delete --exclude='*.pdf' --exclude='*.mp4' --exclude='run' --exclude=".env" --exclude='node_modules'
path: build/
remote_path: ~/cal.moe
remote_host: ${{ secrets.HOST }}
remote_user: ${{ secrets.USER }}
remote_key: ${{ secrets.KEY }}
- uses: appleboy/ssh-action@v0.1.10
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
key: ${{ secrets.KEY }}
script: systemctl --user restart calmoe