Publish Armeria site #32
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 Armeria site | |
on: | |
push: | |
tags: | |
- armeria-* | |
env: | |
LC_ALL: 'en_US.UTF-8' | |
jobs: | |
publish-site: | |
if: github.repository == 'line/armeria' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install svgbob_cli | |
run: | | |
sudo apt-get -y install cargo && cargo install svgbob_cli | |
echo "$HOME/.cargo/bin" >> $GITHUB_PATH | |
- id: setup-jdk-19 | |
name: Set up JDK 19 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '19' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Build the site | |
run: | | |
./gradlew --no-daemon --stacktrace --max-workers=2 --parallel -PgithubToken=${{ secrets.GITHUB_TOKEN }} site | |
- name: Deploy the site | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: site/public |