Skip to content

Commit

Permalink
test new github action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Dwairi committed Jul 3, 2024
1 parent e78a013 commit 44e33ab
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/generate-docs-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,35 @@ jobs:
- name: list new content
run: ls -a code/target/dokka

- name: move from target to temp
run: |
mv code/target/dokka ${{ runner.temp }}/new-docs
- name: checkout to gh-pages
run: git checkout mdwairi/refactor-docs-versioning

- name: remove old docs
run: rm -rf images older rapid-sdk script styles index.html navigation.html not-found-version.html version.json

- name: commit new docs
run: |
NEW_DOCS_VERSION=$(jq -r '.version' version.json)
echo "NEW_DOCS_VERSION=NEW_DOCS_VERSION" >> $GITHUB_ENV
mv ${{ runner.temp }}/new-docs .
git add .
git commit -m "chore: publishing docs for version $NEW_DOCS_VERSION"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
commit-message: "chore: publishing docs for version ${{ env.NEW_DOCS_VERSION }}"
body: "This PR adds the reference documentation for version ${{ env.NEW_DOCS_VERSION }}."
title: "chore: reference docs update for version ${{ env.NEW_DOCS_VERSION }}"
branch: "docs-update-${{ env.NEW_DOCS_VERSION }}"






Expand Down

0 comments on commit 44e33ab

Please sign in to comment.