Skip to content

Commit

Permalink
feat: add netlify deploy
Browse files Browse the repository at this point in the history
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
  • Loading branch information
vinayakkulkarni committed Nov 5, 2022
1 parent 3b7ec60 commit 6f05fb9
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: 'Deploy to Pages'

on:
push:
branches:
- main

jobs:
deploy-demo:
runs-on: ubuntu-latest
defaults:
run:
working-directory: './example/'
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Setup node env 📦
uses: actions/setup-node@v3
with:
node-version: 'current'
check-latest: true
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- name: Install dependencies 🚀
run: npm ci --prefer-offline --no-audit --omit=optional

- name: Run build 🏁
run: npm run build

- name: Deploy to GitHub Pages 🚀
uses: peaceiris/actions-gh-pages@v3.9.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./example/dist
cname: v-offline.netlify.app

0 comments on commit 6f05fb9

Please sign in to comment.