update ci #6
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
on: [push, pull_request] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: torisetsu | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
distribution: 'adopt' | ||
- name: grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: build | ||
run: | | ||
./gradlew build | ||
- uses: actions/checkout@v4 | ||
- name: Check file existence | ||
id: check_files | ||
working-directory: torisetsu/build/dist/js/productionExecutable | ||
uses: andstor/file-existence-action@v3 | ||
Check failure on line 26 in .github/workflows/build.yml GitHub Actions / .github/workflows/build.ymlInvalid workflow file
|
||
with: | ||
files: "index.html, torisetsu.js" | ||
- name: File exists | ||
if: steps.check_files.outputs.files_exists == 'true' | ||
run: echo All files exists! |