Merge branch 'main' of https://github.com/potzplitz/ExtremeDemonList
This commit is contained in:
commit
b695c5c287
1 changed files with 47 additions and 50 deletions
35
.github/workflows/maven.yml
vendored
35
.github/workflows/maven.yml
vendored
|
@ -9,7 +9,7 @@ on:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_test:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
|
@ -31,24 +31,18 @@ jobs:
|
||||||
name: packaged-jar
|
name: packaged-jar
|
||||||
path: target/*.jar
|
path: target/*.jar
|
||||||
|
|
||||||
publish-job:
|
- name: Set release tag
|
||||||
runs-on: ubuntu-latest
|
id: set_release_tag
|
||||||
needs: build_test
|
run: echo "::set-output name=RELEASE_TAG::$(date +'%Y%m%d%H%M%S')"
|
||||||
steps:
|
|
||||||
- name: Checkout Repository
|
- name: Create extracted-jar directory
|
||||||
uses: actions/checkout@v3
|
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: staging
|
path: extracted-jar
|
||||||
|
|
||||||
- name: Create extracted-jar directory
|
|
||||||
run: mkdir extracted-jar
|
|
||||||
|
|
||||||
- name: Move Artifact
|
|
||||||
run: mv staging/*.jar extracted-jar/
|
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
|
@ -56,8 +50,8 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.sha }}
|
tag_name: ${{ steps.set_release_tag.outputs.RELEASE_TAG }}
|
||||||
release_name: Release ${{ github.sha | slice(0, 7) }}
|
release_name: Release ${{ steps.set_release_tag.outputs.RELEASE_TAG }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
|
@ -67,6 +61,9 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: extracted-jar/*.jar
|
asset_path: extracted-jar/ExtremeDemonList-0.0.1-SNAPSHOT-jar-with-dependencies.jar
|
||||||
asset_name: your-artifact-name.jar
|
asset_name: ExtremeDemonList-0.0.1-SNAPSHOT-jar-with-dependencies.jar
|
||||||
asset_content_type: application/java-archive
|
asset_content_type: application/ExtremeDemonList-0.0.1-SNAPSHOT-jar-with-dependencies.jar
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue