-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc8e7d4
commit 9b31ba4
Showing
7 changed files
with
111 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"categories": [ | ||
{ | ||
"title": "## 🚀 Features", | ||
"labels": ["feature"] | ||
}, | ||
{ | ||
"title": "## 🐛 Fixes", | ||
"labels": ["fix"] | ||
} | ||
], | ||
"ignore_labels": [ | ||
"ignore" | ||
], | ||
"sort": { | ||
"order": "ASC", | ||
"on_property": "mergedAt" | ||
}, | ||
"template": "${{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n${{UNCATEGORIZED}}\n</details>", | ||
"pr_template": "- ${{TITLE}}\n - PR: #${{NUMBER}}", | ||
"empty_template": "- no changes", | ||
"label_extractor": [ | ||
{ | ||
"pattern": "(.) (.+)", | ||
"target": "$1", | ||
"flags": "gu" | ||
}, | ||
{ | ||
"pattern": "\\[Issue\\]", | ||
"on_property": "title", | ||
"method": "match" | ||
} | ||
], | ||
"max_tags_to_fetch": 200, | ||
"max_pull_requests": 200, | ||
"max_back_track_time_days": 365, | ||
"base_branches": [ | ||
"master" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: 'Release' | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
release: | ||
if: startsWith(github.ref, 'refs/tags/') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Build Changelog | ||
id: github_release | ||
uses: mikepenz/release-changelog-builder-action@v3 | ||
with: | ||
configuration: ".github/configuration.json" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Create Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
body: ${{steps.github_release.outputs.changelog}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
mkdir -p ./build | ||
version=`cat version` # Version | ||
timestamp=`date "+%Y-%m-%d %H:%M:%S"` # Timestamp | ||
|
||
# Build for Linux 🎁 | ||
env GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X main.version=$version -X \"main.timestamp=$timestamp\"" -o ./build/linux/AGDDoS-linux-amd64 ./src/ | ||
echo Built Linux-amd64! | ||
env GOOS=linux GOARCH=arm64 go build -ldflags "-s -w -X main.version=$version -X \"main.timestamp=$timestamp\"" -o ./build/linux/AGDDoS-linux-arm64 ./src/ | ||
echo Built Linux-arm64! | ||
env GOOS=linux GOARCH=arm go build -ldflags "-s -w -X main.version=$version -X \"main.timestamp=$timestamp\"" -o ./build/linux/AGDDoS-linux-arm ./src/ | ||
echo Built Linux-arm! | ||
env GOOS=linux GOARCH=mips go build -ldflags "-s -w -X main.version=$version -X \"main.timestamp=$timestamp\"" -o ./build/linux/AGDDoS-linux-mips ./src/ | ||
echo Built Linux-mips! | ||
env GOOS=linux GOARCH=mipsle go build -ldflags "-s -w -X main.version=$version -X \"main.timestamp=$timestamp\"" -o ./build/linux/AGDDoS-linux-mipsle ./src/ | ||
echo Built Linux-mipsle! | ||
env GOOS=linux GOARCH=mips64 go build -ldflags "-s -w -X main.version=$version -X \"main.timestamp=$timestamp\"" -o ./build/linux/AGDDoS-linux-mips64 ./src/ | ||
echo Built Linux-mips64! | ||
env GOOS=linux GOARCH=mips64le go build -ldflags "-s -w -X main.version=$version -X \"main.timestamp=$timestamp\"" -o ./build/linux/AGDDoS-linux-mips64le ./src/ | ||
echo Built Linux-mips64le! | ||
|
||
# Build for Macos(Darwin) 🎁 | ||
env GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w -X main.version=$version -X \"main.timestamp=$timestamp\"" -o ./build/darwin/AGDDoS-darwin-amd64 ./src/ | ||
echo Built MacOS-amd64! | ||
env GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w -X main.version=$version -X \"main.timestamp=$timestamp\"" -o ./build/darwin/AGDDoS-darwin-arm64 ./src/ | ||
echo Built MacOS-arm64! | ||
|
||
# Build for Windows 🎁 | ||
env CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -X main.version=$version -X \"main.timestamp=$timestamp\"" -o ./build/windows/AGDDoS-amd64.exe ./src/ | ||
echo Built Windows-amd64! | ||
env CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags "-s -w -X main.version=$version -X \"main.timestamp=$timestamp\"" -o ./build/windows/AGDDoS-x86.exe ./src/ | ||
echo Built Windows-x86! | ||
env CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -ldflags "-s -w -X main.version=$version -X \"main.timestamp=$timestamp\"" -o ./build/windows/AGDDoS-arm64.exe ./src/ | ||
echo Built Windows-arm64! | ||
|
||
# Build for Freebzd 🎁 | ||
env GOOS=freebsd GOARCH=amd64 go build -ldflags "-s -w -X main.version=$version -X \"main.timestamp=$timestamp\"" -o ./build/freebsd/AGDDoS-freebsd-amd64 ./src/ | ||
echo Built Freebzd-amd64! | ||
env GOOS=freebsd GOARCH=386 go build -ldflags "-s -w -X main.version=$version -X \"main.timestamp=$timestamp\"" -o ./build/freebsd/AGDDoS-freebsd-x86 ./src/ | ||
echo Built Freebzd-386! | ||
|
||
# Exit | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.0.2-alpha-5 | ||
1.0.2-alpha-7 |