Update docs push script #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish SDK Reference Docs | |
on: | |
push: | |
jobs: | |
PublishDocs: | |
name: Publish SDK Reference Docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Checkout Docs Repo | |
uses: actions/checkout@v3 | |
with: | |
repository: immutable/imx-docs | |
token: ${{ secrets.PLATFORM_SA_GITHUB_TOKEN }} | |
path: imx-docs | |
ref: main | |
- name: Setup Github | |
run: | | |
git config user.name "${GITHUB_ACTOR}" | |
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
cache: 'yarn' | |
# - name: Install dependencies | |
# run: yarn install --immutable | |
# - name: Build | |
# run: export NODE_OPTIONS=--max-old-space-size=6144 && yarn build | |
# - name: Build SDK Docs | |
# run: yarn docs:build | |
- name: Create SDK Docs PR | |
run: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} ./.github/scripts/push-docs-pr.sh | |
shell: bash |