From 8a30681ecd443153fb7f3a65a662cf873d3df1a7 Mon Sep 17 00:00:00 2001 From: ikoamu Date: Sat, 28 Sep 2024 21:54:19 +0900 Subject: fix: .env setting --- action.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index e505fc3..46c32fe 100644 --- a/action.yml +++ b/action.yml @@ -97,10 +97,14 @@ runs: working-directory: ui run: yarn install shell: bash - - name: Setting .env + - name: Set NEXT_PUBLIC_TITLE to .env working-directory: ui - run: echo "NEXT_PUBLIC_TITLE=${{ inputs.site-title }}\nNEXT_PUBLIC_DEFAULT_SECTION_OPEN=${{ inputs.default-section-open }}" > .env shell: bash + run: echo "NEXT_PUBLIC_TITLE=${{ inputs.site-title }}" > .env + - name: Set NEXT_PUBLIC_DEFAULT_SECTION_OPEN to .env + working-directory: ui + shell: bash + run: echo "NEXT_PUBLIC_DEFAULT_SECTION_OPEN=${{ inputs.default-section-open }}" >> .env - name: Build org-roam-ui working-directory: ui/standalone run: ./build-standalone-server.sh ../../action/ -- cgit