Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
ignore local changes on deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
pvhil committed Jan 16, 2024
1 parent 68325c6 commit 1afc1cb
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

name: Node.js CD

# Controls when the action will run.
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
branches: [master]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -17,17 +17,18 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Deploy using ssh
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
port: ${{ secrets.PORT }}
script: |
cd FaceItDiscord
git pull origin master
git status
npm install
node deploy-commands-global.js
pm2 restart nodeFaceITBot
- name: Deploy using ssh
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
port: ${{ secrets.PORT }}
script: |
cd FaceItDiscord
git reset --hard
git pull origin master
git status
npm install
node deploy-commands-global.js
pm2 restart nodeFaceITBot

0 comments on commit 1afc1cb

Please sign in to comment.