Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions .github/workflows/release-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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