Skip to content

Commit

Permalink
feat: update upload-docs-ios.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
OlenaPostindustria committed Sep 24, 2024
1 parent 70a9a84 commit 3cd5298
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/upload-docs-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- name: Generate docs
run: |
jazzy
cp -r docs docs_new
- name: Checkout docs branch
uses: actions/checkout@v4
with:
Expand All @@ -28,14 +29,21 @@ jobs:
clean: false
- name: Commit documentation changes
run: |
if [ "$(git status --porcelain | wc -l)" -gt 0 ]; then
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git status
TAG_NAME=${{ github.ref }}
TAG_NAME=${TAG_NAME#refs/tags/}
echo "Current tag: $TAG_NAME"
rm -rf docs
cp -r docs_new docs
rm -rf docs_new
git add docs
git commit -m "Generate docs - $TAG_NAME"
else
echo "No changes to commit."
fi
- name: Push changes
uses: ad-m/github-push-action@master
with:
Expand Down

0 comments on commit 3cd5298

Please sign in to comment.