Skip to content

Commit

Permalink
Add an experimental workflow for automatic prepublish staging #188 #228
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Oct 30, 2020
1 parent bdece4d commit 92cf262
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ name: Continuous Deployment
on:
push:
branches: [prepublish]
workflow_run:
workflows: [Prepublication staging]
types: [completed]

jobs:
deploy:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/prepublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# As an alternative to a manual push to the prepublish branch, this workflow can
# be triggered on a release branch by assigning a special label to its pull
# request in order to set the CD circus in motion.

name: Prepublication staging

on:
pull_request:
types: [labeled]
branches: [release/*]

jobs:
stage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Merge into prepublish
uses: devmasx/[email protected]
with:
label_name: ready to launch
target_branch: prepublish
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 92cf262

Please sign in to comment.