test
This commit is contained in:
parent
4c990d860c
commit
c327f19da2
1 changed files with 2 additions and 10 deletions
12
.github/workflows/maven.yml
vendored
12
.github/workflows/maven.yml
vendored
|
@ -13,36 +13,29 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout Repository
|
||||
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
|
||||
run: mvn -B package --file pom.xml
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: packaged-jar
|
||||
path: target/*.jar
|
||||
|
||||
- name: Set release tag
|
||||
id: set_release_tag
|
||||
run: echo "::set-output name=RELEASE_TAG::$(date +'%Y%m%d%H%M%S')"
|
||||
|
||||
- name: Create extracted-jar directory
|
||||
run: mkdir extracted-jar
|
||||
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: packaged-jar
|
||||
path: extracted-jar
|
||||
|
||||
- name: Get commit message and description
|
||||
id: get_commit_info
|
||||
run: |
|
||||
|
@ -57,11 +50,10 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ steps.set_release_tag.outputs.RELEASE_TAG }}
|
||||
release_name: ExtremeDemonList v${{ RELEASE_TAG }}
|
||||
release_name: Release v${{ steps.set_release_tag.outputs.RELEASE_TAG }}
|
||||
body: ${{ steps.get_commit_info.outputs.COMMIT_DESC }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
- name: Upload Artifact as Release Asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
|
@ -70,4 +62,4 @@ jobs:
|
|||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: extracted-jar/ExtremeDemonList-0.0.1-SNAPSHOT-jar-with-dependencies.jar
|
||||
asset_name: ExtremeDemonList-0.0.1-SNAPSHOT-jar-with-dependencies.jar
|
||||
asset_content_type: application/ExtremeDemonList-0.0.1-SNAPSHOT-jar-with-dependencies.jar
|
||||
asset_content_type: application/java-archive
|
||||
|
|
Loading…
Reference in a new issue