feat: update the new title changes in buildbattle (#718) #145
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
tags: | |
- "v*" | |
workflow_dispatch: | |
permissions: | |
checks: write | |
contents: write | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: self-hosted | |
environment: production | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
with: | |
token: ${{ secrets.REPO_PAT }} | |
submodules: recursive | |
- name: Install dependencies | |
run: pnpm install --force | |
- name: Build Code | |
run: pnpm scripts purge --dist && pnpm build --force | |
- name: Prepare Assets | |
run: cd assets/private && pnpm blur && cd ../../ | |
- name: Move Config | |
run: cp /home/config.js ./config.js | |
- name: Restart PM2 | |
run: npx pm2 restart pm2.config.cjs |