mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-10 01:03:36 -05:00
37 lines
883 B
YAML
37 lines
883 B
YAML
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: .
|
|
|
|
env:
|
|
BUILD_FOLDER: ${{ inputs.folder }}
|
|
BASE: ${{ inputs.base }}
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 15
|
|
cache: "yarn"
|
|
|
|
- name: install dependencies
|
|
shell: bash -l {0}
|
|
run: yarn install
|
|
|
|
- name: build
|
|
shell: bash -l {0}
|
|
run: |
|
|
cd "$BUILD_FOLDER"
|
|
yarn build --base "$BASE"
|