fix: exclude 1.20.3 #48
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: Build and publish | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: | |
bundle: | |
type: boolean | |
description: Build a mapping bundle. | |
web: | |
type: boolean | |
description: Build the documentation site. | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Publish bundle with Gradle | |
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.bundle == 'true' }} | |
run: ./gradlew publish | |
env: | |
REPO_USERNAME: ${{ secrets.REPO_USERNAME }} | |
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }} | |
- name: Publish web with Gradle | |
run: ./gradlew buildWeb | |
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.web == 'true' }} | |
env: | |
REPO_USERNAME: ${{ secrets.REPO_USERNAME }} | |
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }} | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.web == 'true' }} | |
with: | |
folder: build/takenaka/web | |
single-commit: true | |
commit-message: 'build: update with ${{ github.sha }}' |