Update maven.yml
This commit is contained in:
parent
8222c2f43d
commit
9dab1248a3
1 changed files with 6 additions and 11 deletions
17
.github/workflows/maven.yml
vendored
17
.github/workflows/maven.yml
vendored
|
@ -30,22 +30,17 @@ jobs:
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B package --file pom.xml
|
run: mvn -B package --file pom.xml
|
||||||
|
|
||||||
release:
|
- name: Release
|
||||||
|
uses: actions/checkout@v3
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: actions/setup-java@v3
|
|
||||||
with:
|
|
||||||
java-version: '20'
|
|
||||||
distribution: 'temurin'
|
|
||||||
- run: mvn --batch-mode --update-snapshots verify
|
- run: mvn --batch-mode --update-snapshots verify
|
||||||
- run: mkdir staging && cp target/*.jar staging
|
- run: mkdir staging && cp target/*.jar staging
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Package
|
name: Package
|
||||||
path: staging
|
path: staging
|
||||||
|
- name: GH Release
|
||||||
|
uses: softprops/action-gh-release@v0.1.15
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
|
||||||
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
|
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
|
||||||
#- name: Update dependency graph
|
#- name: Update dependency graph
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue