-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from adrianmg/patch-1
Fixes the build when using a custom path
- Loading branch information
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ inputs: | |
path: | ||
description: "Path of the directory containing your site" | ||
required: false | ||
default: "" | ||
default: "." | ||
node-version: | ||
description: "The node version to use" | ||
required: false | ||
|
@@ -48,26 +48,31 @@ runs: | |
- name: Setup PNPM | ||
if: ${{ steps.lockfile.outputs.PACKAGE_MANAGER == 'pnpm' }} | ||
uses: pnpm/[email protected] | ||
working-directory: ${{ inputs.path }} | ||
with: | ||
version: 7.x.x | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
working-directory: ${{ inputs.path }} | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
cache: ${{ steps.lockfile.outputs.PACKAGE_MANAGER }} | ||
|
||
- name: Install | ||
shell: "bash" | ||
working-directory: ${{ inputs.path }} | ||
run: $node_pm install | ||
|
||
- name: Build | ||
shell: "bash" | ||
working-directory: ${{ inputs.path }} | ||
env: | ||
PACKAGE_MANAGER: ${{ steps.lockfile.outputs.PACKAGE_MANAGER }} | ||
run: $node_pm run build | ||
|
||
- name: Upload Pages Artifact | ||
uses: actions/upload-pages-artifact@v1 | ||
working-directory: ${{ inputs.path }} | ||
with: | ||
path: "${{ inputs.path }}dist/" | ||
path: "dist/" |