Skip to content

Commit

Permalink
feat: publish SDK docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mohnoor94 committed Feb 29, 2024
1 parent 3ef8bd7 commit 242e173
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/generator-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@ jobs:
name: ${{ github.event.inputs.name }}
version: ${{ github.event.inputs.version }}
publish_sources:
# if: ${{ github.event.inputs.production_release == 'true' }}
# if: ${{ github.event.inputs.production_release == 'true' }}
needs: [ generate ]
uses: ./.github/workflows/generator-publish-sources.yaml
with:
name: ${{ github.event.inputs.name }}
version: ${{ github.event.inputs.version }}
publish_docs:
needs: [ publish_sources ]
uses: ./.github/workflows/generator-publish-docs.yaml

# publish_artifact:
# needs: [ generate ]
# uses: ./.github/workflows/generator-publish-artifact.yaml
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/generator-publish-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
workflow_call:

jobs:
create-gh-pages-branch:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Create new branch
run: |
git checkout -b gh-pages
- name: Copy docs to new branch
run: |
cp -r release/fraudPreventionV2/docs/* .
- name: Push to repository
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git add .
git commit -m "Update GitHub Pages"
git push origin gh-pages

0 comments on commit 242e173

Please sign in to comment.