Skip to content

Commit 762f016

Browse files
authored
[CI-FIX] Fix Windows Workflow GH Action (#642)
Co-authored-by: Flavio F Lima <flavioislima@users.noreply.github.com>
1 parent b02675c commit 762f016

File tree

1 file changed

+6
-29
lines changed

1 file changed

+6
-29
lines changed

.github/workflows/release_windows.yml

+6-29
Original file line numberDiff line numberDiff line change
@@ -91,33 +91,10 @@ jobs:
9191
$latestYml.files[0].size = $size
9292
$latestYml | ConvertTo-Yaml | Set-Content -Path signed/latest.yml
9393
94-
- name: Get release
95-
id: get_release
96-
uses: bruceadams/get-release@v1.3.2
97-
98-
- name: Get artifact name
99-
id: get_artifact_name
100-
run: |
101-
echo "::set-output name=artifact_name::$(Get-ChildItem -Path signed -Filter "HyperPlay*.exe" | Select-Object -ExpandProperty Name)"
102-
103-
- name: Upload release asset
104-
id: upload-release-asset
105-
uses: actions/upload-release-asset@v1
106-
env:
107-
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
108-
with:
109-
upload_url: ${{ steps.get_release.outputs.upload_url }}
110-
asset_path: signed/${{ steps.get_artifact_name.outputs.artifact_name }}
111-
asset_name: ${{ steps.get_artifact_name.outputs.artifact_name }}
112-
asset_content_type: application/octet-stream
113-
114-
- name: Upload release asset
115-
id: upload-latest-yml
116-
uses: actions/upload-release-asset@v1
117-
env:
118-
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
94+
- name: Create Release
95+
uses: ncipollo/release-action@v1.13.0
11996
with:
120-
upload_url: ${{ steps.get_release.outputs.upload_url }}
121-
asset_path: signed/latest.yml
122-
asset_name: latest.yml
123-
asset_content_type: application/octet-stream
97+
token: ${{ secrets.WORKFLOW_TOKEN }}
98+
draft: true
99+
allowUpdates: true
100+
artifacts: 'signed/latest.yml,signed/HyperPlay*.exe,dist/*.blockmap'

0 commit comments

Comments
 (0)