Merge remote-tracking branch 'public/master' #25
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: Github Pages | |
on: | |
push: | |
branches: | |
- master | |
# Only run this when the JavaDoc or website could have changed | |
paths: | |
- 'framework/src/**' | |
- 'www/**' | |
jobs: | |
github-pages: | |
if: ${{ github.repository == 'emichael/dslabs' }} | |
name: Deploy to GitHub pages | |
runs-on: ubuntu-latest | |
concurrency: github-pages | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: ./www/vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('./www/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: '17' | |
cache: 'gradle' | |
- run: make www/javadoc/ | |
- uses: helaili/jekyll-action@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
target_branch: 'gh-pages' | |
jekyll_src: ./www | |
jekyll_build_options: --baseurl /dslabs/ |