From 27edff7fa19a1e5e6f8b27834c5b355b825d3c69 Mon Sep 17 00:00:00 2001 From: Kyle June Date: Wed, 31 Jul 2024 19:48:31 -0400 Subject: [PATCH] Cleanup deploy workflow --- .github/workflows/deploy.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3d1bc99..eac039d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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: @@ -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 }}'