From 36f8c467422225b0fa7f644bd58fb323544d0d92 Mon Sep 17 00:00:00 2001 From: YuKun Liu <41265098+mrxiaozhuox@users.noreply.github.com> Date: Sun, 10 Jul 2022 01:54:58 +0800 Subject: [PATCH 1/2] fix: workflow problem --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index c60ca21..1d934e3 100644 --- a/action.yml +++ b/action.yml @@ -37,7 +37,7 @@ runs: - name: Build Project 🎁 shell: bash - run: cd ${{ inputs.rootPath }} && dioxus build --profile ${{ inputs.outDirectory }} && cp ./${{ inputs.outDirectory }}/index.html ./${{ inputs.outDirectory }}/404.html + run: cd ${{ inputs.rootPath }} && dioxus build --profile ${{ inputs.buildProfile }} && cp ./${{ inputs.outDirectory }}/index.html ./${{ inputs.outDirectory }}/404.html - name: Deploy Project 🚀 uses: JamesIves/github-pages-deploy-action@v4.2.3 From d682891915c1af13b41c7f11d4c6ded65e4d59a4 Mon Sep 17 00:00:00 2001 From: YuKun Liu <41265098+mrxiaozhuox@users.noreply.github.com> Date: Sun, 10 Jul 2022 09:10:54 +0800 Subject: [PATCH 2/2] feat: commit workflow --- action.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 1d934e3..913adbb 100644 --- a/action.yml +++ b/action.yml @@ -7,17 +7,17 @@ inputs: description: "dioxus-cli install repo [default: 'DioxusLabs/cli']" required: true default: "DioxusLabs/cli" - buildProfile: - description: "dioxus-cli(cargo) build profile [default: 'release']" - required: true, + buildMode: + description: "Build projects using different modes [default: 'release']" + required: true default: "release" outDirectory: description: "The `out_dir` property configured in Dioxus.toml [default: 'dist']" - required: true, + required: true default: "dist" rootPath: description: "Source code root path [default: '.']" - required: true, + required: true default: "." runs: @@ -37,7 +37,7 @@ runs: - name: Build Project 🎁 shell: bash - run: cd ${{ inputs.rootPath }} && dioxus build --profile ${{ inputs.buildProfile }} && cp ./${{ inputs.outDirectory }}/index.html ./${{ inputs.outDirectory }}/404.html + run: cd ${{ inputs.rootPath }} && dioxus build --${{ inputs.buildMode }} && cp ./${{ inputs.outDirectory }}/index.html ./${{ inputs.outDirectory }}/404.html - name: Deploy Project 🚀 uses: JamesIves/github-pages-deploy-action@v4.2.3