Skip to content

Commit

Permalink
Merge pull request #1 from eoscostarica/feat/add-ci-workflow
Browse files Browse the repository at this point in the history
ci(workflow): add automatic build and deploy
  • Loading branch information
xavier506 authored Nov 20, 2020
2 parents b109d6d + 66f3291 commit 7db9c91
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish site when changed
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
with:
persist-credentials: false

- name: Install and Build 🔧
run: |
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build
CLEAN: true

0 comments on commit 7db9c91

Please sign in to comment.