Files
sweet/.github/workflows/deploy.yml
T
Christian Svensson 49737c05c5 ci: improve CI perf by adding dependency caching (#2961)
The `denoland/setup-deno` action recently added built-in caching
(https://github.com/denoland/setup-deno/pull/89,
https://github.com/denoland/setup-deno/pull/98). This makes it a lot
simpler to add caching of the `DENO_DIR` during CI runs, without needing
`@actions/cache` manual setup.

This should speed up CI runs by avoiding downloading dependencies
between every run.
2025-05-16 21:28:39 +02:00

37 lines
740 B
YAML

name: Deploy
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Install Deno
uses: denoland/setup-deno@v2
with:
cache: true
deno-version: rc
- name: Build step
working-directory: ./www
run: "deno task build"
- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: "fresh"
entrypoint: "./www/main.ts"
root: "."