nodbot/.github/workflows/dev_deploy.yaml.bak

26 lines
1010 B
YAML
Raw Normal View History

2022-03-05 04:29:38 +00:00
# name: NodBot Dev Deploy
2021-09-29 19:04:51 +00:00
2022-03-05 04:29:38 +00:00
# on:
# push: # tells github to run this on any push to the dev branch
# branches:
# - dev
2021-09-29 19:04:51 +00:00
2022-03-05 04:29:38 +00:00
# jobs:
# deploy:
# runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/dev' # we tell Github to only execute this step if we're on our dev branch
# steps:
# - name: Deploying to Probey
# uses: appleboy/ssh-action@master # An action made to control Linux servers
# with: # We set all our secrets here for the action, these won't be shown in the action logs
# host: ${{ secrets.HOST }}
# username: ${{ secrets.USERNAME }}
# key: ${{ secrets.KEY }}
# port: ${{ secrets.PORT }}
# script: |
# cd nodbot-dev # we move into our app's folder
# git pull # we pull any changes from git
# npm prune # we remove any unused dependencies
# npm install # we install any missing dependencies
# pm2 reload nodbot-dev # we reload the app via PM2