Skip to content

Commit

Permalink
feat: upload docs with GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinPostindustria committed Aug 22, 2024
1 parent 8b0d75f commit d666fb0
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/upload-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Upload Docs iOS

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- 'test-doc-*'

jobs:
upload-docs:

runs-on: macos-latest

steps:
- name: Generate docs
run: |
rm -rf docs
./gradlew :PrebidMobile:combinedJavadoc
cp -r PrebidMobile/build/combinedJavadoc docs
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: docs
- name: Commit documentation changes
run: |
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"
git add -A && git commit -m "Generate docs - $TAG_NAME"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: docs

0 comments on commit d666fb0

Please sign in to comment.