Skip to content

🐞 FIX: refresh token if expired #4

🐞 FIX: refresh token if expired

🐞 FIX: refresh token if expired #4

Workflow file for this run

on:
push:
branches:
- main
name: πŸš€ Deploy pushes on main branch
jobs:
web-deploy:
name: πŸŽ‰ Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3
- name: πŸ–₯ Use Node.js 21
uses: actions/setup-node@v2
with:
node-version: "21"
- name: πŸ”¨ Build Project
run: |
npm install
npm run build
- name: πŸ“‚ Copy Build Files to the server
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
key: ${{ secrets.KEY }}
source: "dist"
target: ~/taskmaster-server/
- name: ♻️ Restart the server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
key: ${{ secrets.KEY }}
script: cd ~/taskmaster-server && git pull && pnpm install && pm2 restart 0