Skip to content

Commit 30a0838

Browse files
committed
ci: update actions, use alternate github release uploader
1 parent 672507d commit 30a0838

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/dotnet-core.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
- name: Test
113113
run: dotnet test -c Release --blame --no-build
114114

115-
- uses: actions/upload-artifact@v3
115+
- uses: actions/upload-artifact@v4
116116
if: failure()
117117
with:
118118
name: TestResults-${{matrix.os}}-${{ env.ARTIFACT_VERSION }}
@@ -123,7 +123,7 @@ jobs:
123123

124124
# Zip the contents of folder host/publish/ into host/Imageflow.Server.Host-${{matrix.os}}-${{ env.ARTIFACT_VERSION }}.zip
125125
- name: Zip Server.Host
126-
uses: thedoctor0/zip-release@0.7.1
126+
uses: thedoctor0/zip-release@0.7.6
127127
with:
128128
type: 'zip'
129129
directory: 'host/publish/'
@@ -140,15 +140,16 @@ jobs:
140140

141141
# If this is a release, upload it to the github release page using the git
142142
- name: Upload Imageflow.Server.Host to release
143-
uses: Shopify/upload-to-release@v1.0.1
143+
uses: xresloader/upload-to-github-release@v1
144+
env:
145+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
144146
if: steps.version.outputs.is_valid == 'true' && github.event_name == 'release'
145147
with:
146-
name: ${{env.HOST_ZIP_FILE}}
147-
path: host/${{env.HOST_ZIP_FILE}}
148-
repo-token: ${{ secrets.GITHUB_TOKEN }}
149-
content-type: application/zip
150-
151-
148+
file: "host/${{env.HOST_ZIP_FILE}}"
149+
tags: true
150+
overwrite: true
151+
verbose: true
152+
152153
- name: Pack
153154
run: dotnet pack -c Release --include-source
154155

0 commit comments

Comments
 (0)