Skip to content

Commit 85cd316

Browse files
committed
Replaced unmaintained release action
1 parent 3f13c8d commit 85cd316

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141

4242
build-windows:
4343
runs-on: windows-latest
44-
44+
permissions:
45+
contents: write
4546
steps:
4647
- uses: actions/checkout@v3
4748
- name: Install FFmpeg
@@ -109,25 +110,10 @@ jobs:
109110
path: ImageSieve.msix
110111
- name: Create Release
111112
if: startsWith(github.ref, 'refs/tags/v')
112-
id: create_release
113-
uses: actions/create-release@v1
114-
env:
115-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
116-
with:
117-
tag_name: ${{ github.ref }}
118-
release_name: Release ${{ github.ref }}
119-
draft: false
120-
prerelease: false
121-
- name: Upload release assets
122-
if: startsWith(github.ref, 'refs/tags/v')
123-
uses: actions/upload-release-asset@v1
124-
env:
125-
GITHUB_TOKEN: ${{ github.token }}
113+
uses: ncipollo/release-action@v1
126114
with:
127-
upload_url: ${{ steps.create_release.outputs.upload_url }}
128-
asset_path: ImageSieve.msi
129-
asset_name: ImageSieve.msi
130-
asset_content_type: application/octet-stream
115+
artifacts: "*.msix,*.msi,*.zip"
116+
bodyFile: "CHANGELOG.md"
131117

132118
build-mac:
133119
runs-on: macos-latest

0 commit comments

Comments
 (0)