Skip to content

Merge pull request #2 from Stan370/dependabot/github_actions/actions/… #21

Merge pull request #2 from Stan370/dependabot/github_actions/actions/…

Merge pull request #2 from Stan370/dependabot/github_actions/actions/… #21

Workflow file for this run

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: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- name: Clone repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Install Deno
uses: denoland/setup-deno@041b854f97b325bd60e53e9dc2de9cb9f9ac0cba # v1.1.4
with:
deno-version: v1.x
- name: Install Node.js
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
with:
node-version: lts/*
- name: Build step
run: "npm install && npm run build" # 📝 Update the build command(s) if necessary
- name: Upload to Deno Deploy
uses: denoland/deployctl@6dce4affe85fbcd9d8917e56c4a49b066b8cc306 # v1
with:
project: "sad-camel-61"
entrypoint: "https://deno.land/[email protected]/http/file_server.ts" # 📝 Update the entrypoint if necessary
root: "out" # 📝 Update the root if necessary