Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: withastro/action
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: MicroWebStacks/astro_action
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 3 commits
  • 2 files changed
  • 1 contributor

Commits on Apr 21, 2024

  1. add out path

    needed out path as it can be configured differently
    wassfila authored Apr 21, 2024
    Copy the full SHA
    bca49ed View commit details
  2. Update action.yml

    wassfila authored Apr 21, 2024
    Copy the full SHA
    31536e7 View commit details
  3. Update README.md

    document new input
    wassfila authored Apr 21, 2024
    Copy the full SHA
    c72276f View commit details
Showing with 6 additions and 1 deletion.
  1. +1 −0 README.md
  2. +5 −1 action.yml
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ For more information, please see our complete deployment guide—[Deploy your As
### Inputs

- `path` - Optional: the root location of your Astro project inside the repository.
- `out` - optional: Path of the directory containing the output build same as for outDir. Needed if path is specified.
- `node-version` - Optional: the specific version of Node that should be used to build your site. Defaults to `20`.
- `package-manager` - Optional: the Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. Accepted values: `npm`, `yarn`, `pnpm`, and `bun`. A version tag is also accepted, for example `npm@18.14.1`, `pnpm@8`, or `bun@latest`. If not provided, version will default to `latest`.

6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -16,6 +16,10 @@ inputs:
description: "Path of the directory containing your site"
required: false
default: "."
out:
description: "Path of the directory containing the output build same as for outDir. Needed if inputs.path is specified."
required: false
default: "./dist"

runs:
using: composite
@@ -94,4 +98,4 @@ runs:
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
path: "${{ inputs.path }}/dist/"
path: "${{ inputs.out }}/"