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:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: maven
|
cache: maven
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B package --file pom.xml
|
run: mvn -B package --file pom.xml
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: packaged-jar
|
name: packaged-jar
|
||||||
path: target/*.jar
|
path: target/*.jar
|
||||||
|
|
||||||
- name: Set release tag
|
- name: Set release tag
|
||||||
id: set_release_tag
|
id: set_release_tag
|
||||||
run: echo "::set-output name=RELEASE_TAG::$(date +'%Y%m%d%H%M%S')"
|
run: echo "::set-output name=RELEASE_TAG::$(date +'%Y%m%d%H%M%S')"
|
||||||
|
|
||||||
- name: Create extracted-jar directory
|
- name: Create extracted-jar directory
|
||||||
run: mkdir extracted-jar
|
run: mkdir extracted-jar
|
||||||
|
|
||||||
- name: Download artifact
|
- name: Download artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: packaged-jar
|
name: packaged-jar
|
||||||
path: extracted-jar
|
path: extracted-jar
|
||||||
|
|
||||||
- name: Get commit message and description
|
- name: Get commit message and description
|
||||||
id: get_commit_info
|
id: get_commit_info
|
||||||
run: |
|
run: |
|
||||||
|
@ -57,11 +50,10 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ steps.set_release_tag.outputs.RELEASE_TAG }}
|
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 }}
|
body: ${{ steps.get_commit_info.outputs.COMMIT_DESC }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
- name: Upload Artifact as Release Asset
|
- name: Upload Artifact as Release Asset
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
|
@ -70,4 +62,4 @@ jobs:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: extracted-jar/ExtremeDemonList-0.0.1-SNAPSHOT-jar-with-dependencies.jar
|
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_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