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: Nightly Build | |
on: | |
- push | |
- workflow_dispatch | |
jobs: | |
build_artifacts: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
>> $GITHUB_ENV echo PKG_VER=$(egrep 'VERSION\s+=' src/AozoraEpub3.java | awk -F '"' '{print $2}') | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'zulu' | |
cache: 'gradle' | |
- run: gradle build | |
- run: mkdir -p bin | |
- run: gradle create_run_jar | |
- run: cp build/libs/AozoraEpub3.jar out/ | |
- run: cp -r lib/LICENSE out/ | |
- run: tar -zcf "AozoraEpub3-$PKG_VER.tgz" -C out/ . |