From de518d17ac6e52a6b29e757d55b3c17ab1c70dc4 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Fri, 26 Jun 2020 09:34:30 +0300 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aa8768f..02c47ae 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,18 +11,17 @@ jobs: steps: - uses: actions/checkout@master - - name: install dependencies - run: npm install + - name: Build Gatsby Site + uses: jzweifel/gatsby-cli-github-action@master + with: + gatsby-arg: build - - name: build - run: node_modules/gatsby/dist/bin/gatsby.js build - - - name: copy file via ssh password + - name: Deply via ssh uses: appleboy/scp-action@master with: host: ${{ secrets.HOST }} username: ${{ secrets.WEBMASTER_USERNAME }} password: ${{ secrets.WEBMASTER_PASSWORD }} source: "public/*" - target: "/home/webmaster/html/" + target: "html" overwrite: true