Skip to content

Commit

Permalink
ci: 배포 액션으로 softprops/action-gh-release@v2 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
DrumRobot committed Apr 2, 2024
1 parent a571a8c commit 5366b53
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,22 @@ jobs:

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
distribution: "temurin"
java-version: 17

- name: Build with Gradle
run: ./gradlew bootJar

- 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
env:
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

0 comments on commit 5366b53

Please sign in to comment.