change maven version and add permissions in action
Some checks failed
Gitea Actions Maven Build / build (push) Has been cancelled
Some checks failed
Gitea Actions Maven Build / build (push) Has been cancelled
This commit is contained in:
parent
9ebbebda90
commit
57e84f84df
@ -7,18 +7,20 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout the repo
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up Maven
|
||||
uses: stCarolas/setup-maven@v5
|
||||
with:
|
||||
maven-version: '3.8.2'
|
||||
maven-version: '3.9.9'
|
||||
- name: Set up JDK 23
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: 23
|
||||
distribution: 'temurin'
|
||||
cache: maven
|
||||
cache: 'maven'
|
||||
- name: Build with Maven
|
||||
run: mvn -B package --file pom.xml
|
Loading…
x
Reference in New Issue
Block a user