Skip to content

Commit a3c7e4a

Browse files
committed
Fix release upload by switching to GitHub CLI approach
1 parent f0e1c49 commit a3c7e4a

File tree

1 file changed

+15
-28
lines changed

1 file changed

+15
-28
lines changed

.github/workflows/build-and-release.yml

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -70,33 +70,20 @@ jobs:
7070
Write-Host "Version is controlled by the VERSION file in the repository"
7171
7272
- name: Create Release
73-
uses: actions/create-release@v1
74-
env:
75-
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
76-
with:
77-
tag_name: v${{ steps.get_version.outputs.version }}
78-
release_name: Release v${{ steps.get_version.outputs.version }}
79-
body: |
80-
## Changes in v${{ steps.get_version.outputs.version }}
81-
82-
This release includes the latest changes from the main branch.
83-
84-
### Download
85-
Download the `UE-Git-Plugin-Manager.exe` file below and run it to use the latest version.
86-
87-
### Installation
88-
1. Download `UE-Git-Plugin-Manager.exe`
89-
2. Run the executable
90-
3. Follow the setup wizard
91-
draft: false
92-
prerelease: false
93-
94-
- name: Upload Release Asset
95-
uses: actions/upload-release-asset@v1
73+
run: |
74+
gh release create "v${{ steps.get_version.outputs.version }}" `
75+
--title "Release v${{ steps.get_version.outputs.version }}" `
76+
--notes "## Changes in v${{ steps.get_version.outputs.version }}
77+
78+
This release includes the latest changes from the main branch.
79+
80+
### Download
81+
Download the \`UE-Git-Plugin-Manager.exe\` file below and run it to use the latest version.
82+
83+
### Installation
84+
1. Download \`UE-Git-Plugin-Manager.exe\`
85+
2. Run the executable
86+
3. Follow the setup wizard" `
87+
./dist/UE-Git-Plugin-Manager.exe
9688
env:
9789
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
98-
with:
99-
upload_url: ${{ steps.create_release.outputs.upload_url }}
100-
asset_path: ./dist/UE-Git-Plugin-Manager.exe
101-
asset_name: UE-Git-Plugin-Manager.exe
102-
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)