Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup deploy workflow #93

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}'