task icon Task

Deploy to GitHub Pages

Upload a directory to GitHub Pages (no composition, just deployment)

Requirements
Project name for the deployment (becomes the URL slug). Path to directory containing files to deploy. Commit message describing the deployment.
3

Report the live URL (may take 1-2 minutes to propagate) and repository URL.

                    To run this task you must have the following required information:

> Project name for the deployment (becomes the URL slug).
Path to directory containing files to deploy.
Commit message describing the deployment.

If you don't have all of this information, exit here and respond asking for any extra information you require, and instructions to run this task again with ALL required information.

---

You MUST use a todo list to complete these steps in order. Never move on to one step if you haven't completed the previous step. If you have multiple CONSECUTIVE read steps in a row, read them all at once (in parallel). Otherwise, do not read a file until you reach that step.

Add all steps to your todo list now and begin executing.

## Steps

1. [Read External Actions Guide]: Read the documentation in: `skills/sauna/[skill_id]/references/sauna.actions.external.md`

2. [Gather Arguments: Deploy Web App with Assets] The next step has the following requirements for arguments, do not proceed until you have all the required information:
- `projectName`: project name from requirements
- `sourceDir`: path to directory from requirements
- `commitMessage` (default: "Deploy web app"): commit message from requirements
- `trackingPath`: documents/media/published/index.md

3. [Run Code: Deploy Web App with Assets]: Call `run_script` with:

```json
{
  "file": {
    "path": https://sk.ills.app/code/web.github.deploy/preview,
    "args": [
      "projectName",
      "sourceDir",
      "commitMessage",
      "trackingPath"
    ]
  },
  "packages": null
}
```

4. Report the live URL (may take 1-2 minutes to propagate) and repository URL.