Skip to content

Commit

Permalink
Add GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
llaske committed Jan 20, 2023
1 parent a8cc8ed commit 7e943ad
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy dev branch on dev.sugarizer.org

on:
push:
branches:
- dev

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy on Sugarizer Dev Server
run: echo "Deploy on Sugarizer Dev Server"
- name: Update dev.sugarizer.org
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
cd sugarizer-dev/sugarizer
git pull

0 comments on commit 7e943ad

Please sign in to comment.