Update maven.yml
This commit is contained in:
parent
fc246831fd
commit
dc5f770b14
1 changed files with 21 additions and 29 deletions
50
.github/workflows/maven.yml
vendored
50
.github/workflows/maven.yml
vendored
|
@ -11,39 +11,31 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up JDK 17
|
|
||||||
uses: actions/setup-java@v3
|
|
||||||
with:
|
|
||||||
java-version: '17'
|
|
||||||
distribution: 'temurin'
|
|
||||||
cache: maven
|
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Set up JDK 17
|
||||||
run: mvn -B package --file pom.xml
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: '17'
|
||||||
|
distribution: 'temurin'
|
||||||
|
cache: maven
|
||||||
|
|
||||||
|
- name: Build with Maven
|
||||||
|
run: mvn -B package --file pom.xml
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs: build
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Build & test
|
||||||
uses: actions/setup-node@v3
|
run: |
|
||||||
with:
|
echo "done!"
|
||||||
node-version: '20.x' # Stellen Sie sicher, dass diese Version mit semantic-release kompatibel ist.
|
|
||||||
cache: 'npm'
|
|
||||||
|
|
||||||
- name: Install semantic-release
|
- uses: marvinpinto/action-automatic-releases@latest
|
||||||
run: npm install -g semantic-release@latest @semantic-release/changelog @semantic-release/git
|
with:
|
||||||
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Configure Git
|
prerelease: false
|
||||||
run: |
|
files: |
|
||||||
git config user.name "GitHub Actions"
|
LICENSE.txt
|
||||||
git config user.email "actions@github.com"
|
*.jar
|
||||||
|
|
||||||
- name: Run semantic-release
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: npx semantic-release
|
|
||||||
|
|
Loading…
Reference in a new issue