2021-09-13 23:54:39 -04:00
|
|
|
name: Build
|
|
|
|
description: Builds a project instance, assuming all the correct project files are in the build folder
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
base:
|
|
|
|
name: Base path
|
|
|
|
description: The path to use as a base for linking
|
|
|
|
required: true
|
|
|
|
default: /
|
|
|
|
folder:
|
|
|
|
name: Build Folder
|
|
|
|
description: The folder to try to build from
|
|
|
|
required: true
|
|
|
|
default: .
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: composite
|
|
|
|
steps:
|
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
2022-03-29 15:47:19 -04:00
|
|
|
node-version: 16
|
2022-09-19 09:24:04 -04:00
|
|
|
cache: "pnpm"
|
2021-09-13 23:54:39 -04:00
|
|
|
|
2021-09-14 01:30:52 -04:00
|
|
|
- name: Install Dependencies and Build
|
2021-09-14 01:10:57 -04:00
|
|
|
shell: bash -l {0}
|
2021-09-14 01:16:31 -04:00
|
|
|
env:
|
|
|
|
BUILD_FOLDER: ${{ inputs.folder }}
|
|
|
|
BASE: ${{ inputs.base }}
|
2021-09-13 23:54:39 -04:00
|
|
|
run: |
|
2021-09-14 01:37:37 -04:00
|
|
|
cd "$BUILD_FOLDER"
|
2022-09-19 09:24:04 -04:00
|
|
|
pnpm install
|
|
|
|
pnpm build --base "$BASE"
|