|
1 | | -name: Generate and upload a release assets |
| 1 | +name: Generate and upload release assets |
2 | 2 |
|
3 | 3 | 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*' |
13 | 7 |
|
14 | 8 | jobs: |
15 | 9 | upload: |
16 | 10 | name: Upload Artifacts |
17 | | - runs-on: ubuntu-24.04 |
| 11 | + runs-on: ubuntu-latest |
18 | 12 | steps: |
19 | | - - uses: actions/checkout@v2 |
| 13 | + - uses: actions/checkout@v6 |
20 | 14 | - run: scripts/shell-lib/docker/install_docker.sh |
21 | 15 | - run: scripts/installer/generate_installer.sh |
22 | | - - uses: actions/upload-release-asset@v1 |
| 16 | + - uses: softprops/action-gh-release@v2 |
23 | 17 | env: |
24 | 18 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
25 | 19 | 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