Scope preview deployments by hosted site
This commit is contained in:
@@ -1,22 +1,30 @@
|
||||
name: Validate and deploy static Worker preview
|
||||
name: Deploy primary static Worker preview
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [astro-platform-pilot]
|
||||
paths:
|
||||
- .gitea/workflows/deploy.yml
|
||||
- astro.config.mjs
|
||||
- package.json
|
||||
- package-lock.json
|
||||
- public/**
|
||||
- schemas/**
|
||||
- scripts/**
|
||||
- sites.json
|
||||
- sites/www/**
|
||||
- src/**
|
||||
- wrangler/www.jsonc
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
preview:
|
||||
name: Preview ${{ matrix.site_key }}
|
||||
name: Preview www
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
site_key: [www, blog]
|
||||
env:
|
||||
SITE_KEY: ${{ matrix.site_key }}
|
||||
SITE_KEY: www
|
||||
ASTRO_TELEMETRY_DISABLED: '1'
|
||||
steps:
|
||||
- name: Checkout source
|
||||
|
||||
Reference in New Issue
Block a user