Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Add/update Plasmic push workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
plasmicops committed Mar 28, 2022
1 parent c2a4b31 commit 9160554
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/plasmic-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Plasmic push workflow v1
name: Build and deploy Plasmic app

on:
push:
branches:
- main

jobs:
job:
name: Build and deploy
runs-on: ubuntu-latest
steps:
- id: checkout
name: Check out repository
uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- id: node
name: Set up node v14
uses: actions/setup-node@v2
with:
node-version: "14"
- id: cache
name: Recover cache
uses: actions/cache@v2
with:
key: lock-${{ hashFiles('package-lock.json', 'yarn.lock') }}
path: node_modules
- id: build
name: Build Plasmic app
uses: plasmicapp/plasmic-action@master
with:
run: build
branch: main
skip_if_plasmic: true
- id: gh-pages
name: Publish to GitHub Pages
uses: JamesIves/[email protected]
if: ${{ steps.build.outputs.publish_dir }}
with:
branch: gh-pages
folder: ${{ steps.build.outputs.publish_dir }}

0 comments on commit 9160554

Please sign in to comment.