-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.56 KB
/
rolling-release-linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build Rolling Release (Linux)
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux]
goarch: [amd64, arm64]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Values
run: echo "VERSION=rolling" >> $GITHUB_ENV && echo "BUILD_DATE=$(date -u '+%d %b %Y')" >> $GITHUB_ENV
- name: Build
uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: "."
binary_name: "bloodhound-cli"
ldflags: -s -w -X "github.com/SpecterOps/BloodHound_CLI/cmd/config.Version=${{ env.VERSION }}" -X "github.com/SpecterOps/BloodHound_CLI/cmd/config.BuildDate=${{ env.BUILD_DATE }}"
release_tag: rolling
overwrite: true
executable_compression: upx --brute
- name: Update Rolling Release
uses: softprops/action-gh-release@v2
with:
name: Rolling Release (unstable)
tag_name: rolling
prerelease: true
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
body: |
This is the rolling release of BloodHound CLI compiled from source (${{ github.sha }}).
The repository updates releases automatically to keep them up-to-date with the `${{ github.ref_name }}` ${{ github.ref_type }}.
Releases were last built on ${{ env.BUILD_DATE }}.