From 51a9dcf3c8df98203f01002b58c7c2dcba4b2be9 Mon Sep 17 00:00:00 2001 From: Ethan Roseman Date: Wed, 8 Mar 2023 23:01:56 +0900 Subject: [PATCH] Automatic deployment :robort: --- .github/workflows/ci.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..1f5a971 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,21 @@ +name: CI +on: + push: + branches: [ main ] +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - run: yarn + - run: yarn build + - name: Deploy + uses: appleboy/scp-action@master + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + source: "dist/" + target: "/var/www/papermar.io/html/" + strip_components: 1