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
|
||||
|
||||
jobs:
|
||||
build_test:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
|
@ -31,24 +31,18 @@ jobs:
|
|||
name: packaged-jar
|
||||
path: target/*.jar
|
||||
|
||||
publish-job:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build_test
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
- 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: staging
|
||||
|
||||
- name: Create extracted-jar directory
|
||||
run: mkdir extracted-jar
|
||||
|
||||
- name: Move Artifact
|
||||
run: mv staging/*.jar extracted-jar/
|
||||
path: extracted-jar
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
|
@ -56,8 +50,8 @@ jobs:
|
|||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.sha }}
|
||||
release_name: Release ${{ github.sha | slice(0, 7) }}
|
||||
tag_name: ${{ steps.set_release_tag.outputs.RELEASE_TAG }}
|
||||
release_name: Release ${{ steps.set_release_tag.outputs.RELEASE_TAG }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
|
@ -67,6 +61,9 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: extracted-jar/*.jar
|
||||
asset_name: your-artifact-name.jar
|
||||
asset_content_type: application/java-archive
|
||||
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
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue