building maven project #99
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: backend | |
run-name: building maven project | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
# permissions: write-all | |
env: | |
working-directory: ./logic/backend | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: ls -l ${{env.working-directory}} | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
cache: 'maven' | |
- run: java -version | |
- name: build java backend | |
working-directory: ${{env.working-directory}} | |
run: | | |
mvn -B package | |
ls -l target | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ${{env.working-directory}}/target/boast_backend-1.0-SNAPSHOT-runner.jar | |
asset_name: boast_backend.jar | |
tag: ${{ github.ref }} | |
overwrite: true | |
body: "This is the boast backend" |