Skip to content

Commit 9237cde

Browse files
committed
Try fixing releases
Uses a different action because the "official" one is deprecated
1 parent 45aafa7 commit 9237cde

File tree

4 files changed

+25
-29
lines changed

4 files changed

+25
-29
lines changed

.github/workflows/vcpkg_ci_linux.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,14 +238,14 @@ jobs:
238238
- name: Publish Release Assets
239239
if: |
240240
github.event.release
241-
uses: actions/[email protected]
242-
env:
243-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
241+
uses: softprops/action-gh-release@v1
244242
with:
245-
upload_url: ${{ github.event.release.upload_url }}
246-
asset_path: ${{ env.ARTIFACT_NAME }}
247-
asset_name: ${{ env.ARTIFACT_NAME }}
248-
asset_content_type: application/x-xz
243+
files: ${{ env.ARTIFACT_NAME }}
244+
tag_name: ${{ github.ref }}
245+
release_name: ${{ github.ref }}
246+
draft: true
247+
prerelease: ${{ contains(github.ref, 'pre') || contains(github.ref, 'rc') }}
248+
token: ${{ secrets.RELEASE_TOKEN }}
249249

250250
- name: Cache cleanup and reporting
251251
shell: 'bash'

.github/workflows/vcpkg_ci_mac.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,14 @@ jobs:
203203
- name: Publish Release Assets
204204
if: |
205205
github.event.release
206-
uses: actions/[email protected]
207-
env:
208-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
206+
uses: softprops/action-gh-release@v1
209207
with:
210-
upload_url: ${{ github.event.release.upload_url }}
211-
asset_path: ${{ env.ARTIFACT_NAME }}
212-
asset_name: ${{ env.ARTIFACT_NAME }}
213-
asset_content_type: application/x-xz
208+
files: ${{ env.ARTIFACT_NAME }}
209+
tag_name: ${{ github.ref }}
210+
release_name: ${{ github.ref }}
211+
draft: true
212+
prerelease: ${{ contains(github.ref, 'pre') || contains(github.ref, 'rc') }}
213+
token: ${{ secrets.RELEASE_TOKEN }}
214214

215215
- name: Cache cleanup and reporting
216216
shell: 'bash'

.github/workflows/vcpkg_ci_windows.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,14 @@ jobs:
187187
- name: Publish Release Assets
188188
if: |
189189
github.event.release
190-
uses: actions/[email protected]
191-
env:
192-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
190+
uses: softprops/action-gh-release@v1
193191
with:
194-
upload_url: ${{ github.event.release.upload_url }}
195-
asset_path: ${{ env.VCPKG_ROOT }}/${{ env.ARTIFACT_NAME }}.7z
196-
asset_name: ${{ env.ARTIFACT_NAME }}.7z
197-
asset_content_type: application/octet-stream
192+
files: ${{ env.ARTIFACT_NAME }}
193+
tag_name: ${{ github.ref }}
194+
release_name: ${{ github.ref }}
195+
draft: true
196+
prerelease: ${{ contains(github.ref, 'pre') || contains(github.ref, 'rc') }}
197+
token: ${{ secrets.RELEASE_TOKEN }}
198198

199199
- name: Cache cleanup
200200
run: |

.github/workflows/vcpkg_release.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,13 @@ jobs:
1010
name: Publish Release on GitHub
1111
runs-on: ubuntu-20.04
1212
steps:
13-
- uses: actions/checkout@v2.3.4
13+
- uses: actions/checkout@v2
1414
- name: Create Release
1515
id: create_release
16-
uses: actions/[email protected]
17-
env:
18-
# NOTE: GitHub actions doesn't allow workflows to trigger other
19-
# workflows by default. The workaround is to use a PAT instead of the
20-
# default GITHUB_TOKEN.
21-
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
16+
uses: softprops/action-gh-release@v1
2217
with:
2318
tag_name: ${{ github.ref }}
2419
release_name: ${{ github.ref }}
25-
draft: false
20+
draft: true
2621
prerelease: ${{ contains(github.ref, 'pre') || contains(github.ref, 'rc') }}
22+
token: ${{ secrets.RELEASE_TOKEN }}

0 commit comments

Comments
 (0)