Skip to content

Commit 70575aa

Browse files
committed
Fix: add permissions, simplify release
1 parent 9019c96 commit 70575aa

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,12 @@ on:
44
push:
55
tags:
66
- 'v*'
7-
workflow_dispatch:
8-
inputs:
9-
release:
10-
description: 'Create release'
11-
required: false
12-
default: 'true'
137

148
jobs:
159
build:
1610
runs-on: windows-latest
11+
permissions:
12+
contents: write
1713
steps:
1814
- uses: actions/checkout@v4
1915

@@ -31,17 +27,16 @@ jobs:
3127
name: mhr-cfw-go
3228
path: mhr-cfw-go.exe
3329

34-
- name: Download for release
30+
- name: Download artifact
3531
uses: actions/download-artifact@v4
3632
with:
3733
name: mhr-cfw-go
3834
path: .
3935

4036
- name: Release
41-
if: github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/')
4237
uses: softprops/action-gh-release@v2
4338
with:
4439
files: mhr-cfw-go.exe
45-
generate_release_notes: true
40+
body: "Built from commit ${{ github.sha }}"
4641
env:
4742
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)