summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-01-17 23:38:54 +0900
committernsfisis <nsfisis@gmail.com>2024-01-17 23:41:40 +0900
commitbb8d510516888fe1cda506c1a5816cee339eace3 (patch)
treeeaa9ee8824f3b77cf4e43802aacbee0129e8a05e /.github
parent9c448ed58559e54c152b7809a4bd1a6df56dcd95 (diff)
downloadnil.ninja-bb8d510516888fe1cda506c1a5816cee339eace3.tar.gz
nil.ninja-bb8d510516888fe1cda506c1a5816cee339eace3.tar.zst
nil.ninja-bb8d510516888fe1cda506c1a5816cee339eace3.zip
add files
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/deploy.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000..7087976
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,26 @@
+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: |
+ set -e
+ cd nil.ninja
+ git fetch --prune origin
+ git restore -- .
+ git clean -fd
+ git switch -d origin/main
+ git submodule update --init
+ make deploy