Skip to content

Commit 92cf262

Browse files
committed
Add an experimental workflow for automatic prepublish staging #188 #228
1 parent bdece4d commit 92cf262

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/cd.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ name: Continuous Deployment
66
on:
77
push:
88
branches: [prepublish]
9+
workflow_run:
10+
workflows: [Prepublication staging]
11+
types: [completed]
912

1013
jobs:
1114
deploy:

.github/workflows/prepublish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# As an alternative to a manual push to the prepublish branch, this workflow can
2+
# be triggered on a release branch by assigning a special label to its pull
3+
# request in order to set the CD circus in motion.
4+
5+
name: Prepublication staging
6+
7+
on:
8+
pull_request:
9+
types: [labeled]
10+
branches: [release/*]
11+
12+
jobs:
13+
stage:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Merge into prepublish
18+
uses: devmasx/merge-branch@v1.3.0
19+
with:
20+
label_name: ready to launch
21+
target_branch: prepublish
22+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)