Deploy independent blog preview Worker
This commit is contained in:
@@ -4,21 +4,19 @@ on:
|
||||
push:
|
||||
branches: [astro-platform-pilot]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
site_key:
|
||||
description: Site key to deploy to its non-production Worker
|
||||
required: true
|
||||
type: choice
|
||||
options: [www, blog]
|
||||
|
||||
jobs:
|
||||
preview:
|
||||
name: Preview ${{ inputs.site_key || 'www' }}
|
||||
name: Preview ${{ matrix.site_key }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
site_key: [www, blog]
|
||||
env:
|
||||
SITE_KEY: ${{ inputs.site_key || 'www' }}
|
||||
SITE_KEY: ${{ matrix.site_key }}
|
||||
ASTRO_TELEMETRY_DISABLED: '1'
|
||||
steps:
|
||||
- name: Checkout source
|
||||
|
||||
Reference in New Issue
Block a user