Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

fix: Added env vars to Action #6

fix: Added env vars to Action

fix: Added env vars to Action #6

Workflow file for this run

name: Deploy
on:
push:
branches: [main]
pull_request:
branches: main
jobs:
deploy:
name: Build and Deploy
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
# Generate static images
- name: Build step
env:
FRESH_IMAGES_USE_HEADERS: true
FRESH_IMAGES_USE_KV: true
FRESH_IMAGES_USE_CACHE: true
run: |
deno task build
mkdir -p _fresh/static/placholders
cp -r static/placeholders/* _fresh/static/placeholders
- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: "fresh-images"
entrypoint: "./main.ts"