This repository has been archived by the owner on Jun 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2a4b31
commit 9160554
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |