From 289910fa260acab44515a383b4337b2215a01844 Mon Sep 17 00:00:00 2001 From: kasramp Date: Sat, 29 Apr 2023 22:30:19 +0200 Subject: [PATCH] #25 fix bug on release --- .github/workflows/build_and_tag.yml | 3 ++- .github/workflows/release.yml | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_and_tag.yml b/.github/workflows/build_and_tag.yml index a0ec8ae..2cf8c2e 100644 --- a/.github/workflows/build_and_tag.yml +++ b/.github/workflows/build_and_tag.yml @@ -51,7 +51,8 @@ jobs: pwd ${GITHUB_WORKSPACE} chmod +x "${GITHUB_WORKSPACE}/util/release.sh" ./${GIHUB_WORKSPACE}/util/release.sh - - uses: actions/upload-artifact@v3 + - name: Upload artifact + uses: actions/upload-artifact@v3 with: name: ${{ github.ref_name }}-jar path: target/*.jar diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 23ca488..7ce27cd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,12 +9,15 @@ jobs: build: runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: master + fetch-depth: 0 - name: Download artifact uses: actions/download-artifact@v3 with: - name: ${{ github.ref_name }}-jar - - name: Checkout - uses: actions/checkout@v3 + name: master-jar - name: Release uses: softprops/action-gh-release@v1 with: