Skip to content

Commit 42624cb

Browse files
author
Patrick Bareiss
committed
Improve release workflow
1 parent 1a268e8 commit 42624cb

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,7 @@ on:
77
env:
88
IMAGE_NAME: "splunk/attack_range"
99

10-
jobs:
11-
publish-github-release:
12-
runs-on: ubuntu-latest
13-
if: startsWith(github.ref, 'refs/tags/v')
14-
steps:
15-
- name: Checkout repo
16-
uses: actions/checkout@v4
17-
with:
18-
ref: 'develop'
19-
20-
- name: Set tag
21-
id: vars
22-
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
23-
24-
- name: Prepare Release for Publishing on github
25-
run: |
26-
cd ..
27-
tar -zcvf attack-range-${{ steps.vars.outputs.tag }}.tar.gz attack_range
28-
sha256sum attack-range-${{ steps.vars.outputs.tag }}.tar.gz > checksum-${{ steps.vars.outputs.tag }}.txt
29-
30-
- name: Upload Release Artifacts
31-
uses: softprops/action-gh-release@v2
32-
with:
33-
files: |
34-
../attack-range-${{ steps.vars.outputs.tag }}.tar.gz
35-
../checksum-%{{ steps.vars.outputs.tag }}.txt
36-
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
37-
10+
jobs:
3811
build-and-publish-docker-image:
3912
runs-on: ubuntu-latest
4013
if: startsWith(github.ref, 'refs/tags/v')

0 commit comments

Comments
 (0)