Skip to content

Commit

Permalink
deploy to gh pages only or push/merge to master
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrc committed Feb 22, 2024
1 parent 7f2238b commit 7226aa4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy-demo.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
name: Build and deploy demo
on: [push]

on:
push:
branches: [master] # It will also trigger on PR merges to master

permissions:
contents: write

jobs:
build-and-deploy-demo:
name: Build and deploy demo
Expand All @@ -14,13 +19,10 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18.x

- name: Install
run: yarn

- name: Build
run: yarn build

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand Down

0 comments on commit 7226aa4

Please sign in to comment.