From 74e6c956844b669aa3517e68a621dd9984016f7a Mon Sep 17 00:00:00 2001 From: "Shah, Kevin" Date: Thu, 10 Oct 2024 21:55:58 -0400 Subject: [PATCH 1/2] fix: Added doc CI task in release pipeline --- .github/workflows/release-github.yml | 44 ++++++++++++++-------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/release-github.yml b/.github/workflows/release-github.yml index 1d4f7ca..bc576ca 100644 --- a/.github/workflows/release-github.yml +++ b/.github/workflows/release-github.yml @@ -118,25 +118,25 @@ jobs: env: NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} # <-- Allows semantic-release to publish to npm without 2 factor auth. run: npm publish --tag $NPM_DIST_TAG --workspaces --dry-run - - # - name: Checkout firebolt GitHub.io repository - # if: steps.check_build.outputs.result == 'true' - # env: - # GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_BOT_PAT }} # <-- Allows semantic-release-bot to push changes to protected branches - # PRIVATE_KEY: ${{inputs.PRIVATE_KEY}} - # run: | - # cd /tmp - # git clone git@github.com:rdkcentral/lifecycle-manager-doc.git ./firebolt-docs - # - name: Release docs to GitHub.io - # if: steps.check_build.outputs.result == 'true' && (github.ref_name == 'main' || github.ref_name == 'next' || github.ref_name == 'next-major' || github.event_name == 'pull_request') - # env: - # GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_BOT_PAT }} # <-- Allows semantic-release-bot to push changes to protected branches - # run: | - # npm run publish:docs /tmp/firebolt-docs $DOCS_TAG - # cd /tmp/firebolt-docs - # git config --global url."git@github.com:".insteadOf "https://github.com/" - # git config --global user.email "you@example.com" - # git config --global user.name "Your Name" - # git add --all - # git diff-index --quiet HEAD || git commit -m "chore: Publish $DOCS_TAG" - # git push + - name: Checkout firebolt GitHub.io repository + if: steps.check_build.outputs.result == 'true' + env: + GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_BOT_PAT }} # <-- Allows semantic-release-bot to push changes to protected branches + PRIVATE_KEY: ${{inputs.PRIVATE_KEY}} + run: | + cd /tmp + git clone git@github.com:rdkcentral/ripple-rpc.git ./firebolt-docs + git checkout docs + - name: Release docs to GitHub.io + if: steps.check_build.outputs.result == 'true' && (github.ref_name == 'main' || github.ref_name == 'next' || github.ref_name == 'next-major' || github.event_name == 'pull_request') + env: + GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_BOT_PAT }} # <-- Allows semantic-release-bot to push changes to protected branches + run: | + npm run publish:docs /tmp/firebolt-docs $DOCS_TAG + cd /tmp/firebolt-docs + git config --global url."git@github.com:".insteadOf "https://github.com/" + git config --global user.email "you@example.com" + git config --global user.name "Your Name" + git add --all + git diff-index --quiet HEAD || git commit -m "chore: Publish $DOCS_TAG" + git push From 0aa6f4512c515a5d48415e05b34f8c861ec00212 Mon Sep 17 00:00:00 2001 From: "Shah, Kevin" Date: Thu, 10 Oct 2024 21:57:14 -0400 Subject: [PATCH 2/2] fix: Added doc CI task in release pipeline --- .github/workflows/release-github.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-github.yml b/.github/workflows/release-github.yml index bc576ca..0987142 100644 --- a/.github/workflows/release-github.yml +++ b/.github/workflows/release-github.yml @@ -139,4 +139,4 @@ jobs: git config --global user.name "Your Name" git add --all git diff-index --quiet HEAD || git commit -m "chore: Publish $DOCS_TAG" - git push + git push \ No newline at end of file