From f08f0826913b526f7a13aa103ee7e0577a5b376c Mon Sep 17 00:00:00 2001 From: AritaYuto Date: Sat, 6 Jan 2024 14:46:42 +0900 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ee47ce9..03ec9b6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,33 +19,9 @@ jobs: runs-on: windows-latest steps: - - name: Install curl on Windows - run: | - choco install curl - - - name: Delete existing draft release - run: | - $releaseId = (curl -s -H "Authorization: Bearer $env:GITHUB_TOKEN" ` - "https://api.github.com/repos/${env:GITHUB_REPOSITORY}/releases/tags/${{ steps.gen_release_title.outputs.version }}" | ConvertFrom-Json).id - if ($releaseId -ne $null) { - curl -X DELETE -H "Authorization: Bearer $env:GITHUB_TOKEN" ` - "https://api.github.com/repos/${env:GITHUB_REPOSITORY}/releases/$releaseId" - } - - - name: Generate release title - id: gen_release_title - run: | - $TITLE = (Get-Date).ToString("yyyy-MM-dd") + "_BuildID-" + $env:GITHUB_RUN_NUMBER - Write-Host "Version set to $TITLE" - echo "::set-output name=version::$TITLE" - - name: Create release draft uses: release-drafter/release-drafter@v5 id: create_draft - with: - tag: ${{ steps.gen_release_title.outputs.title }} - name: ${{ steps.gen_release_title.outputs.title }} - version: ${{ steps.gen_release_title.outputs.title }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}