Skip to content

Commit

Permalink
Publish to gh-pages branch on commit to masster branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Mongey committed Nov 10, 2022
1 parent 2c536b5 commit c402ebd
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Deploy
on:
push:
branches:
- master

permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Install and Build 🔧
uses: actions/setup-node@v3
with:
node-version: 14
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- run: |
yarn install --frozen-lockfile
yarn run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist # The folder the action should deploy.

0 comments on commit c402ebd

Please sign in to comment.