Merge remote-tracking branch 'origin/main' #8
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 to Demo | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: self-hosted | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: install dependencies | |
run: pnpm install | |
env: | |
GITHUB_AUTH_TOKEN: ${{secrets.PERSONAL_TOKEN}} | |
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Deploy | |
run: | | |
echo "Deploying to demo..." | |
pm2 start --name zhin npm -- run dev | |
echo "Deployed to demo" |