Skip to content

Commit 3e22507

Browse files
committed
GH Actions: fix duplicate release
As things were, the workflow was creating two releases, one in draft and one published, but without a good name/changelog. I noticed this last time there was a release, but never got round to fixing it (and it wasn't urgent as no new release was needed). As a new release is needed soon, now seemed like a good time to fix this. The `actions/create-release` action runner has been abandoned and mentions the `softprops/action-gh-release` action runner as a replacement. This commit now updates the workflow to solely use the `softprops/action-gh-release` action runner and updates the version and configuration to make sure it only creates a draft release, so we can still edit it and add the changelog before publishing.
1 parent 3195a74 commit 3e22507

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

Diff for: .github/workflows/release.yml

+3-10
Original file line numberDiff line numberDiff line change
@@ -118,19 +118,12 @@ jobs:
118118
name: parallel-lint-phar
119119

120120
- name: Draft Release
121-
uses: actions/create-release@v1
122-
env:
123-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
121+
uses: softprops/action-gh-release@v2
124122
with:
125123
tag_name: ${{ github.ref }}
126124
release_name: Release ${{ github.ref }}
127125
draft: true
128126
prerelease: false
129-
130-
- name: Upload Phar as Release Asset
131-
id: upload-release-asset
132-
uses: softprops/action-gh-release@v2
133-
env:
134-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
135-
with:
127+
make_latest: true
136128
files: parallel-lint.phar
129+
fail_on_unmatched_files: true

0 commit comments

Comments
 (0)