Building jars ποΈ #43
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: Building jars ποΈ | |
| on: | |
| push: | |
| paths: | |
| - "src/**" | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: πͺ Set up JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: 21 | |
| distribution: 'microsoft' | |
| - name: ποΈ Build jars | |
| run: | | |
| chmod u+x gradlew | |
| ./gradlew build | |
| - name: ποΈ Extract jars | |
| run: | | |
| mkdir -p build_jars | |
| cp -r build/libs/* build_jars | |
| - name: βοΈ Deploy jars | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: "temp jars" | |
| path: "build_jars/*" |