Fix user permissions on gradle wrapper for circleci #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate and Deploy Javadoc | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up JDK 20 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '20' | |
distribution: 'adopt' | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Generate Javadoc | |
run: ./gradlew javadoc | |
- name: Copy Javadoc to Jekyll Directory | |
run: | | |
mkdir -p ghpage/docs/javadoc | |
cp -r ./build/docs/javadoc/* ghpage/docs/javadoc/ | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.3.4' | |
- name: Install Jekyll and Bundler | |
run: gem install jekyll bundler | |
- name: Build Jekyll site | |
run: | | |
cd ghpage | |
bundle install | |
bundle exec jekyll build | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./ghpage/_site |