Skip to content

Commit 0942c4e

Browse files
committed
Update release action
1 parent 6dd3266 commit 0942c4e

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,20 +73,20 @@ jobs:
7373
run: BuildTools\Build-RainmeterSkin.ps1 -TargetPath "bin\Release\x64\MqttClient.dll" -PlatformName "Any CPU" -Skin "Hello World" -SolutionDir ".\\"
7474
shell: powershell
7575

76+
- name: dir bin
77+
run: dir bin
78+
shell: powershell
79+
7680
- name: Upload output dlls
7781
uses: actions/upload-artifact@v2
7882
with:
7983
name: MqttClientPlugin
8084
path: bin\Release\*\*.dll
8185

82-
- name: Create release and upload skin
83-
run: |
84-
set -x
85-
assets=()
86-
for asset in bin\*.rmskin; do
87-
assets+=("-a" "$asset")
88-
done
89-
tag_name="${GITHUB_REF##*/}"
90-
hub release edit "${assets[@]}" -m "$tag_name" "$tag_name"
91-
env:
92-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86+
- name: Upload skin to release
87+
uses: svenstaro/upload-release-action@v2
88+
with:
89+
repo_token: ${{ secrets.GITHUB_TOKEN }}
90+
file: bin\MqttClient_.rmskin
91+
asset_name: MqttClient_.rmskin
92+
tag: ${{ github.ref }}

0 commit comments

Comments
 (0)