Change: [CI] rework preview flow and use Cloudflare Pages to publish (#11116)
This commit is contained in:
16
.github/workflows/preview.yml
vendored
Normal file
16
.github/workflows/preview.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
name: Preview
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types:
|
||||
- labeled
|
||||
- synchronize
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
preview:
|
||||
if: ${{ (github.event.action == 'labeled' && github.event.label.name == 'preview') || (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'preview')) }}
|
||||
name: Preview
|
||||
uses: ./.github/workflows/preview-build.yml
|
||||
secrets: inherit
|
||||
Reference in New Issue
Block a user