deno-deploy-example/.github/workflows/ci.yml
Luca Casonato 2c2248e870
Fix CI
2022-02-10 10:35:53 +01:00

38 lines
764 B
YAML

name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
env:
DEPLOY_API_ENDPOINT: https://deno-staging.com
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Install Deno
uses: denoland/setup-deno@main
with:
deno-version: 1.18.2
- name: Build site
run: deno run -A https://deno.land/x/lume/ci.ts
- name: Deploy to Deno Deploy
uses: lucacasonato/deployctl@github_action
with:
project: lume-example
entrypoint: https://deno.land/std/http/file_server.ts
cwd: _site