Skip to content

Instantly share code, notes, and snippets.

@jeffreyaven
Last active December 30, 2022 21:23
Show Gist options
  • Save jeffreyaven/e4e98f427c80ecee4f82fb8731565289 to your computer and use it in GitHub Desktop.
Save jeffreyaven/e4e98f427c80ecee4f82fb8731565289 to your computer and use it in GitHub Desktop.
name: Build and Deploy Registry Providers
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
workflow_dispatch:
jobs:
build-and-deploy:
name: build-and-deploy
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
env:
REG_DENO_DEPLOY_API_PROD: stackql-registry
# ...
steps:
- uses: actions/checkout@v3
name: "[SETUP] checkout repo"
with:
fetch-depth: 0
# ...
- name: "[DEPLOY] install deno"
if: env.NUM_PROVIDERS > 0 && env.REG_EVENT == 'push'
uses: denoland/setup-deno@main
with:
deno-version: 1.18.2
- name: "[DEPLOY] deploy to deno deploy (prod)"
if: env.NUM_PROVIDERS > 0 && env.REG_TARGET_BRAMCH == 'main' && env.REG_EVENT == 'push'
uses: denoland/deployctl@v1
with:
project: ${{ env.REG_DENO_DEPLOY_API_PROD }}
entrypoint: index.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment