Skip to content

Commit a9bb0e1

Browse files
committed
Migrated to softprops/action-gh-release
1 parent 8babb81 commit a9bb0e1

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on: [push, pull_request, workflow_dispatch]
44

55
permissions:
66
contents: write
7+
discussions: write
78

89
jobs:
910
build:
@@ -66,21 +67,29 @@ jobs:
6667
- name: List files
6768
run: ls -lhR
6869

69-
- name: Release nightly
70+
- name: Release stable
7071
if: github.ref == 'refs/heads/main'
71-
uses: marvinpinto/action-[email protected]
72+
uses: softprops/action-gh-release@v2
7273
with:
73-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
74-
automatic_release_tag: "latest"
74+
draft: true
75+
generate_release_notes: true
76+
fail_on_unmatched_files: true
7577
prerelease: true
78+
tag_name: latest
7679
title: "GhidraYara Nightly (${{steps.date.outputs.date}})"
7780
files: GhidraYara_Ghidra_*/*.zip
81+
token: ${{ secrets.GITHUB_TOKEN }}
7882

7983
- name: Release stable
8084
if: contains(github.ref, 'refs/tags/v')
81-
uses: marvinpinto/action-[email protected]
85+
uses: softprops/action-gh-release@v2
8286
with:
83-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
87+
tag_name: ${{ github.ref }}
88+
name: Release ${{ github.ref }} (${{ matrix.arch }})
89+
draft: true
8490
prerelease: false
91+
generate_release_notes: true
92+
fail_on_unmatched_files: true
8593
title: "Ghidra GhidraYara ${{github.ref_name}}"
8694
files: GhidraYara_Ghidra_*/*.zip
95+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)