Build #274
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 | |
on: | |
schedule: | |
- cron: '0 8 * * *' | |
push: | |
branches: | |
- custom_intn | |
- master | |
pull_request: | |
branches: | |
- custom_intn | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
JDK_JAVA_OPTIONS: "--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED" | |
name: Build with Gradle | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 20 | |
distribution: 'temurin' | |
cache: gradle | |
- name: Build with Gradle | |
run: | | |
./gradlew build | |
find . -name '*.jar' | |
- name: Cleanup Gradle Cache | |
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions. | |
# Restoring these files from a GitHub Actions cache might cause problems for future builds. | |
run: | | |
rm -f ~/.gradle/caches/modules-2/modules-2.lock | |
rm -f ~/.gradle/caches/modules-2/gc.properties | |
- name: Move Artifacts | |
run: | | |
pwd | |
find . -name 'factoid-converters*.jar' -exec bash -c 'mv $0 ./factoid-converters-latest.jar' {} \; | |
ls | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: 'latest' | |
tag_name: 'latest' | |
prerelease: true | |
files: factoid-converters-latest.jar |