Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: CI task to generate doc #75

Open
wants to merge 2 commits into
base: next
Choose a base branch
from
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 [email protected]: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."[email protected]:".insteadOf "https://github.com/"
# git config --global user.email "[email protected]"
# 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 [email protected]: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."[email protected]:".insteadOf "https://github.com/"
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git add --all
git diff-index --quiet HEAD || git commit -m "chore: Publish $DOCS_TAG"
git push
Loading