Skip to content

Commit

Permalink
Cleanup deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleJune committed Jul 31, 2024
1 parent 39584f3 commit 27edff7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ name: Deploy
on:
workflow_call:
inputs:
working-directory:
type: string
default: '.'
app-directory:
description: The directory containing the application to deploy
type: string
default: '.'
entrypoint:
description: The entrypoint file for running your application
type: string
default: 'main.ts'
project:
description: The Deno Deploy project to deploy to
required: true
type: string
jobs:
Expand All @@ -29,11 +29,10 @@ jobs:
with:
deno-version: v1.x
- name: Build
working-directory: ${{ inputs.working-directory }}
working-directory: ${{ inputs.app-directory }}
run: deno task build-prod
- name: Deploy to Deno Deploy
uses: denoland/deployctl@v1
with:
project: ${{ inputs.project }}
root: ${{ inputs.working-directory }}
entrypoint: '${{ inputs.app-directory }}/${{ inputs.entrypoint }}'

0 comments on commit 27edff7

Please sign in to comment.