Skip to content

πŸ‘Œ IMPROVE: added books get route #22

πŸ‘Œ IMPROVE: added books get route

πŸ‘Œ IMPROVE: added books get route #22

Workflow file for this run

on:
push:
branches:
- main
name: πŸš€ Deploy website on push
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/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
source: "dist,package.json,package-lock.json"
target: ${{secrets.TARGET}}
- name: ♻️ Restart the servers
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script : ${{secrets.ENV}} && npm install && touch ${{secrets.RESTART}}