Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1 -> Main #1

Merged
merged 2 commits into from
Jul 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 --${{ inputs.buildMode }} && cp ./${{ inputs.outDirectory }}/index.html ./${{ inputs.outDirectory }}/404.html

- name: Deploy Project 🚀
uses: JamesIves/[email protected]
Expand Down