Skip to content

Commit

Permalink
chore: add steps to create and upload devcenter docs to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
k80bowman committed Aug 30, 2024
1 parent 323bc8a commit bd5d8bb
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/devcenter-doc-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,36 @@ on:
jobs:
update-devcenter-command-docs:
name: Update Devcenter command docs
runs-on: pub-hk-ubuntu-22.04-small
runs-on: ubuntu-latest
environment: SignDebian
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
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_DEB_SECRET_KEY: ${{ secrets.HEROKU_DEB_SECRET_KEY }}
HEROKU_DEVCENTER_API_KEY: ${{ secrets.HEROKU_DEVCENTER_API_KEY }}
- name: Upload md file as artifact
uses: actions/upload-artifact@v3
with:
name: heroku-cli-commands
path: /tmp/heroku-cli-commands.md

0 comments on commit bd5d8bb

Please sign in to comment.