Skip to content

Commit da1ce9f

Browse files
committed
Updated release workflow
1 parent 3c5bc35 commit da1ce9f

1 file changed

Lines changed: 12 additions & 29 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,24 @@
1-
name: Generate and upload a release assets
1+
name: Generate and upload release assets
22

33
on:
4-
release:
5-
types:
6-
- published
7-
#- unpublished
8-
- created
9-
- edited
10-
#- deleted
11-
- prereleased
12-
- released
4+
push:
5+
tags:
6+
- 'v*'
137

148
jobs:
159
upload:
1610
name: Upload Artifacts
17-
runs-on: ubuntu-24.04
11+
runs-on: ubuntu-latest
1812
steps:
19-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v6
2014
- run: scripts/shell-lib/docker/install_docker.sh
2115
- run: scripts/installer/generate_installer.sh
22-
- uses: actions/upload-release-asset@v1
16+
- uses: softprops/action-gh-release@v2
2317
env:
2418
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2519
with:
26-
upload_url: ${{ github.event.release.upload_url }}
27-
asset_path: scripts/installer/Espy.tar
28-
# Note: This will fail if the asset already exists
29-
# (e.g. editing a release w/o deleting the existing asset)
30-
asset_name: Espy.tar
31-
asset_content_type: application/x-tar
32-
- uses: actions/upload-release-asset@v1
33-
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
with:
36-
upload_url: ${{ github.event.release.upload_url }}
37-
asset_path: agent/install-sysmon-beats.ps1
38-
# Note: This will fail if the asset already exists
39-
# (e.g. editing a release w/o deleting the existing asset)
40-
asset_name: install-sysmon-beats.ps1
41-
asset_content_type: text/plain
20+
generate_release_notes: true
21+
prerelease: ${{ contains(github.ref_name, '-') }}
22+
files: |
23+
scripts/installer/Espy.tar
24+
agent/install-sysmon-beats.ps1

0 commit comments

Comments
 (0)