Skip to content

Commit

Permalink
Update node.js.yml (#19)
Browse files Browse the repository at this point in the history
* Update node.js.yml

* Update README.md
  • Loading branch information
grzanka authored Sep 1, 2021
1 parent 626c062 commit 64568c8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <support+actions@github.com>" -r "git@github.com:yaptide/web_dev.git"
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).

0 comments on commit 64568c8

Please sign in to comment.