aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorikoamu <ikoamu@gmail.com>2024-02-04 20:48:41 +0900
committerikoamu <ikoamu@gmail.com>2024-02-04 20:48:41 +0900
commitaef6cd389d73b805637a28679a120aa747ef3400 (patch)
treef908c9a3afe0133d66760fd85ac8b2a8167977d6
parentee545b08b791f22715eda3d03c741395869a340f (diff)
Add site title option to action.yml
-rw-r--r--action.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/action.yml b/action.yml
index ac1e990..30ae6f9 100644
--- a/action.yml
+++ b/action.yml
@@ -9,6 +9,10 @@ inputs:
org-roam-db-filename:
description: "org-roam db filename"
required: true
+ site-title:
+ description: "Site title"
+ required: false
+ default: "ORUI"
deploy-to-pages:
description: "Deploy to GitHub Pages"
required: false
@@ -65,6 +69,10 @@ runs:
working-directory: ui
run: yarn install
shell: bash
+ - name: Setting .env
+ working-directory: ui
+ run: echo "NEXT_PUBLIC_TITLE=${{ inputs.site-title }}" > .env
+ shell: bash
- name: Build org-roam-ui
working-directory: ui/standalone
run: ./build-standalone-server.sh ../../action/