Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ jobs:
- name: Checkout your repository using git
uses: actions/checkout@v2
- name: Install, build, and upload your site output
uses: withastro/action@v0
uses: withastro/action@v2
# with:
# deno-version: 1.38.3 # The specific version of Deno that should be used to build your site. Defaults to 1.38.3. (optional)
# deno-setup-task: setup # The Deno task that should be run to build your site. Defaults to setup. (optional)
# build-command: deno task build # The command that should be run to build your site. Defaults to deno task build. (optional)
# with:
# path: . # The root location of your Astro project inside the repository. (optional)
# node-version: 16 # The specific version of Node that should be used to build your site. Defaults to 16. (optional)
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ dist/

# dependencies
node_modules/
deno.lock

# logs
npm-debug.log*
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Inside of your Astro project, you'll see the following folders and files:
├── src/
│ └── pages/
│ └── index.astro
├── deno.json
└── package.json
```

Expand All @@ -37,6 +38,9 @@ All commands are run from the root of the project, from a terminal:
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro --help` | Get help using the Astro CLI |
| `deno install astro` | Installs dependencies |
| `deno task setup` | *(Deno only)* Cache remote deps (`deno.json`) |
| `deno task build` | *(Deno only)* Run your build task (`deno.json`) |

## 👀 Want to learn more?

Expand Down
7 changes: 7 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"unstable": ["bare-node-builtins"],
"tasks": {
"setup": "deno cache .",
"build": "deno run --allow-read --allow-run --allow-env npm:astro build"
}
}