Skip to content

building maven project #109

building maven project

building maven project #109

Workflow file for this run

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"