Publish Central Dogma site #16
Workflow file for this run
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: Publish Central Dogma site | |
on: | |
push: | |
tags: | |
- centraldogma-* | |
env: | |
LC_ALL: 'en_US.UTF-8' | |
jobs: | |
publish-site: | |
if: github.repository == 'line/centraldogma' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install graphviz | |
run: | | |
sudo apt-get -y install graphviz | |
- id: setup-jdk-17 | |
name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Build the site | |
run: | | |
./gradlew --no-daemon --stacktrace site | |
- name: Deploy the site | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: site/build/site |