창고 숫자 Exception 추가 #11
This file contains hidden or 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: [pull_request, push] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| # Use these Java versions | |
| java: [ | |
| 11.0.19 | |
| ] | |
| # and run on Linux | |
| os: [ubuntu-22.04] | |
| runs-on: ${{ matrix.os }} | |
| permissions: write-all | |
| steps: | |
| - name: checkout repository | |
| uses: actions/checkout@v4 | |
| - name: setup jdk ${{ matrix.java }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: 'microsoft' | |
| - name: make gradle wrapper executable | |
| if: ${{ runner.os != 'Windows' }} | |
| run: chmod +x ./gradlew | |
| - name: build | |
| run: ./gradlew build | |
| - name: capture build artifacts | |
| if: ${{ runner.os == 'Linux' && matrix.java == '11.0.19' }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Artifacts | |
| path: build/libs/ | |
| - name: Create prerelease | |
| if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch) # Only runs if this CI was triggered by the default branch | |
| uses: "marvinpinto/action-automatic-releases@latest" | |
| with: | |
| repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
| automatic_release_tag: "latest" | |
| prerelease: true | |
| title: "Latest Build" | |
| files: | | |
| ./build/libs/*.jar |