From 5366b534b836a0b36c85243a5b039e2caf75a206 Mon Sep 17 00:00:00 2001 From: David Jeong Date: Tue, 2 Apr 2024 23:59:24 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20=EB=B0=B0=ED=8F=AC=20=EC=95=A1=EC=85=98?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20`softprops/action-gh-release@v2`=20?= =?UTF-8?q?=EC=82=AC=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b4baa9a..12c27e9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/setup-java@v4 with: - distribution: 'temurin' + distribution: "temurin" java-version: 17 - name: Build with Gradle @@ -25,14 +25,7 @@ jobs: - name: Create Release id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false + uses: softprops/action-gh-release@v2 - name: Upload Artifacts uses: actions/upload-release-asset@v1 @@ -40,6 +33,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./build/libs/picdiary-back-${{ github.ref }}.jar - asset_name: picdiary-back-${{ github.ref }}.jar + asset_path: ./build/libs/picdiary-back-${{ github.ref_name }}.jar + asset_name: picdiary-back-${{ github.ref_name }}.jar asset_content_type: application/java-archive