Skip to content

Commit 8c01262

Browse files
committed
Add beta-docs CI job
1 parent 7474e6d commit 8c01262

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.circleci/config.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,21 @@ jobs:
478478
paths:
479479
- '*/docs/'
480480

481+
docs-beta:
482+
executor: rsp-xlarge
483+
steps:
484+
- restore_cache:
485+
key: react-spectrum-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }}
486+
487+
- run:
488+
name: build docs
489+
command: make s2-docs-production
490+
491+
- persist_to_workspace:
492+
root: dist
493+
paths:
494+
- '*/docs/'
495+
481496
s2-docs:
482497
executor: rsp-xlarge
483498
steps:
@@ -1018,6 +1033,29 @@ workflows:
10181033
requires:
10191034
- docs-production
10201035

1036+
1037+
beta-docs:
1038+
when:
1039+
and:
1040+
- equal: [ "beta-docs", << pipeline.parameters.GHA_Action >> ]
1041+
- or:
1042+
- equal: [ "release", << pipeline.parameters.GHA_Event >>]
1043+
- equal: [ "workflow_dispatch", << pipeline.parameters.GHA_Event >>]
1044+
jobs:
1045+
- install
1046+
- docs-beta:
1047+
filters:
1048+
branches:
1049+
only: beta-docs
1050+
requires:
1051+
- install
1052+
- deploy-production:
1053+
filters:
1054+
branches:
1055+
only: beta-docs
1056+
requires:
1057+
- docs-beta
1058+
10211059
nightly:
10221060
triggers:
10231061
- schedule:

.github/workflows/beta-docs.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Beta docs deploy
2+
on:
3+
release:
4+
types: [published]
5+
workflow_dispatch:
6+
7+
jobs:
8+
trigger-circleci:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Run CircleCI
12+
id: beta-docs
13+
uses: CircleCI-Public/trigger-circleci-pipeline-action@v1.0.5
14+
env:
15+
CCI_TOKEN: ${{ secrets.CCI_TOKEN }}

0 commit comments

Comments
 (0)