From 8e536a738dba1ea0b2d038dd694bc3f1388bb963 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 26 Oct 2022 20:32:26 +0900 Subject: setup github actions --- .github/workflows/deploy.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/deploy.yml 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 -- cgit v1.2.3-70-g09d2