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