Skip to content

switch npm for deno in deploy action #3

switch npm for deno in deploy action

switch npm for deno in deploy action #3

Workflow file for this run

name: Deploy static content to Pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
env:
REPO_NAME: ${{ github.event.repository.name }}
steps:
- uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: deno cache deps.ts
- run: deno task build
- uses: actions/configure-pages@v3
- uses: actions/upload-pages-artifact@v1
with:
# Upload dist repository
path: "./dist"
- id: deployment
uses: actions/deploy-pages@v1