-
Notifications
You must be signed in to change notification settings - Fork 224
48 lines (46 loc) · 1.33 KB
/
devcenter-doc-update.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Update CLI Command DevCenter Documentation
on:
workflow_dispatch:
inputs:
isStableRelease:
type: boolean
description: Is this a stable/prod release?
required: true
default: false
workflow_call:
inputs:
isStableRelease:
type: boolean
description: Is this a stable/prod release?
required: true
default: false
jobs:
update-devcenter-command-docs:
name: Update Devcenter command docs
runs-on: ubuntu-latest
if: ${{ fromJSON(inputs.isStableRelease) }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js 16.x
uses: actions/setup-node@v4
with:
node-version: 16.x
cache: yarn
- name: Install Ruby
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
with:
ruby-version: '3.1'
- name: Install package deps
run: yarn --immutable --network-timeout 1000000
- name: Install Devcenter CLI
run: |
gem install devcenter
devcenter help
- name: Build CLI
run: yarn build
- name: Compile documentation and push to devcenter
run: |
cd packages/cli
./scripts/postrelease/dev_center_docs
env:
HEROKU_DEVCENTER_API_KEY: ${{ secrets.HEROKU_DEVCENTER_API_KEY }}