Skip to content

0.1.10

0.1.10 #54

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: macos-13
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check w/o SNAPSHOT when "bump version"
if: ${{ contains(github.event.head_commit.message, 'bump version') }}
run: grep "<version>" pom.xml | head -1 | grep -v SNAPSHOT
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Build with Maven
env:
DOCOMO_GOO_HIRAGANA_API_KEY : ${{ secrets.DOCOMO_GOO_HIRAGANA_API_KEY }}
RECRUIT_PROOFREADING_API_KEY : ${{ secrets.RECRUIT_PROOFREADING_API_KEY }}
YAHOOJAPAN_API_KEY : ${{ secrets.YAHOOJAPAN_API_KEY }}
GOOGLE_APPLICATION_CREDENTIALS : 'tmp/google.json'
GOOGLE : ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
GITHUB_TOKEN: ${{ github.token }}
run: |
mkdir tmp
echo "$GOOGLE" > tmp/google.json
mvn -B package --file pom.xml -s $GITHUB_WORKSPACE/settings.xml