This commit is contained in:
22
.github/workflows/build.yml
vendored
Normal file
22
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
name: Maven build
|
||||
run-name: Build application with maven
|
||||
on: [ push ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out latest repository code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Build project
|
||||
run: mvn -s .mvn/settings.xml clean install -DskipTests
|
||||
|
||||
- name: Deploy project
|
||||
run: mvn -s .mvn/settings.xml deploy -Dgitea.accessToken=${{ secrets.CI_TOKEN }} -Dmaven.owner=${{ gitea.owner }}
|
||||
|
||||
Reference in New Issue
Block a user