summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2022-10-26 20:32:26 +0900
committernsfisis <nsfisis@gmail.com>2022-10-26 20:32:26 +0900
commit8e536a738dba1ea0b2d038dd694bc3f1388bb963 (patch)
tree9b09514ed3bfd99613d7d37defa10a857c73ec21 /.github/workflows
parent1ca20fd68c956100cc62ced2de0e698d2b0765f5 (diff)
downloadnsfisis.dev-8e536a738dba1ea0b2d038dd694bc3f1388bb963.tar.gz
nsfisis.dev-8e536a738dba1ea0b2d038dd694bc3f1388bb963.tar.zst
nsfisis.dev-8e536a738dba1ea0b2d038dd694bc3f1388bb963.zip
setup github actions
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/deploy.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 00000000..ddb7058f
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,23 @@
+name: Deploy
+on:
+ push:
+ branches: [main]
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Deploy
+ uses: appleboy/ssh-action@cc051b07ed0666619f6ea5703319edf00d06be13
+ with:
+ key: ${{ secrets.SSH_KEY }}
+ host: ${{ secrets.SSH_HOST }}
+ username: ${{ secrets.SSH_USERNAME }}
+ port: ${{ secrets.SSH_PORT }}
+ script: |
+ cd nsfisis.dev
+ git pull origin main
+ git submodule update --init
+ make clean
+ make deploy