Skip to content

Commit

Permalink
Setup CI-CD using Github Actions (#9)
Browse files Browse the repository at this point in the history
* Setup CI-CD using Github Actions

* test

* test

* another test

* try to use GITHUB_TOKEN

* try the specific action

* remove master protection and use node 14

* remove deploy for pull request

Co-authored-by: Nimish <[email protected]>
Co-authored-by: Andrea Bogazzi <[email protected]>
  • Loading branch information
3 people authored Jun 14, 2020
1 parent cc09e1c commit 3b6c456
Show file tree
Hide file tree
Showing 5 changed files with 8,310 additions and 4,885 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/node.js-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ development ]

jobs:
build:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: 14
- name: Install dependencies
run: npm ci
- name: Build Gatsby site
run: npm run build --if-present
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: master # default: gh-pages
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
package-lock=false
registry="https://registry.npmjs.org"
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ After installation is done, you can run [locally](http://localhost:8000) by exec
```shell
npm run develop
```

Loading

0 comments on commit 3b6c456

Please sign in to comment.