From 70575aa5a52016463140eff7570590ac8af2859b Mon Sep 17 00:00:00 2001 From: ThisIsDara <1380katana@gmail.com> Date: Mon, 4 May 2026 08:05:20 +0330 Subject: [PATCH] Fix: add permissions, simplify release --- .github/workflows/build.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fe52a3e..59acd0d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,16 +4,12 @@ on: push: tags: - 'v*' - workflow_dispatch: - inputs: - release: - description: 'Create release' - required: false - default: 'true' jobs: build: runs-on: windows-latest + permissions: + contents: write steps: - uses: actions/checkout@v4 @@ -31,17 +27,16 @@ jobs: name: mhr-cfw-go path: mhr-cfw-go.exe - - name: Download for release + - name: Download artifact uses: actions/download-artifact@v4 with: name: mhr-cfw-go path: . - name: Release - if: github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v2 with: files: mhr-cfw-go.exe - generate_release_notes: true + body: "Built from commit ${{ github.sha }}" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file