Skip to content

fix: exclude hotfix versions (#4) #44

fix: exclude hotfix versions (#4)

fix: exclude hotfix versions (#4) #44

Workflow file for this run

name: Build and publish
on:
push:
branches:
- master
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 }}'