Skip to content

Merge pull request #44 from amcintosh/release-0.7 #82

Merge pull request #44 from amcintosh/release-0.7

Merge pull request #44 from amcintosh/release-0.7 #82

Workflow file for this run

# This workflows will re-generate the javadocs when there are changes on main
name: Generate Documentation
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 17
- name: Generate Docs
run: gradle javadoc
- name: Commit files
run: |
rm -rf docs/*
mv lib/build/docs/javadoc/* docs/
git add docs
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m "📝 CI: automated Generate Documentation" -a | exit 0
- name: Push changes
if: github.ref == 'refs/heads/main'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main