From 64568c8af945b98519493d839964b0aedc7ceee1 Mon Sep 17 00:00:00 2001 From: Leszek Grzanka Date: Wed, 1 Sep 2021 18:08:45 +0200 Subject: [PATCH] Update node.js.yml (#19) * Update node.js.yml * Update README.md --- .github/workflows/node.js.yml | 25 +++++++++++++++++++++++++ README.md | 5 ----- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 1f3aeb2b2..70e8ef493 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -33,3 +33,28 @@ jobs: - run: npm ci - run: npm run build --if-present - run: npm test + + test_and_deploy: + runs-on: ubuntu-latest + needs: [build] + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v2 + + - name: Install 🔧 + run: npm install + + - name: webfactory/ssh-agent + # You may pin to the exact commit or the version. + # uses: webfactory/ssh-agent@5f066a372ec13036ab7cb9a8adf18c936f8d2043 + uses: webfactory/ssh-agent@v0.5.3 + with: + # Private SSH key to register in the SSH agent + ssh-private-key: ${{ secrets.WEBDEV }} + + - name: Deploy + if: github.ref == 'refs/heads/master' + run: | + git remote set-url origin git@github.com:yaptide/web_dev.git + npm run deploy -- -u "github-actions-bot " -r "git@github.com:yaptide/web_dev.git" + diff --git a/README.md b/README.md index b58e0af83..2861c925f 100644 --- a/README.md +++ b/README.md @@ -39,8 +39,3 @@ Instead, it will copy all the configuration files and the transitive dependencie You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. -## Learn More - -You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). - -To learn React, check out the [React documentation](https://reactjs.org/).