forked from graphql/graphql-js
29 lines (28 loc) · 865 Bytes
/
cd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: CD
on:
workflow_run:
workflows:
- CI
types:
- completed
branches:
- main
jobs:
deploy-to-npm-branch:
name: Deploy to `npm` branch
if: github.event.workflow_run.event == 'push'
uses: ./.github/workflows/deploy-artifact-as-branch.yml
with:
workflow_id: ${{github.event.workflow_run.id}}
artifact_name: npmDist
target_branch: npm
commit_message: "Deploy ${{github.event.workflow_run.head_sha}} to 'npm' branch"
deploy-to-deno-branch:
name: Deploy to `deno` branch
if: github.event.workflow_run.event == 'push'
uses: ./.github/workflows/deploy-artifact-as-branch.yml
with:
workflow_id: ${{github.event.workflow_run.id}}
artifact_name: denoDist
target_branch: deno
commit_message: "Deploy ${{github.event.workflow_run.head_sha}} to 'deno' branch"