Skip to content

Commit

Permalink
refact workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
vaaaaanquish committed Jun 16, 2024
1 parent 116bfca commit 671add3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
on:
push
on: [push, pull_request]

jobs:
build:
Expand All @@ -8,7 +7,7 @@ jobs:
run:
working-directory: torisetsu
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
Expand All @@ -19,14 +18,11 @@ jobs:
- 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
with:
files: "index.html, torisetsu.js"
files: "torisetsu/build/dist/js/productionExecutable/index.html"
- name: File exists
if: steps.check_files.outputs.files_exists == 'true'
run: echo All files exists!

0 comments on commit 671add3

Please sign in to comment.