Skip to content

Commit

Permalink
setup CI-CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Simple-MAX committed Sep 28, 2022
1 parent e2b674f commit 8d03416
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 3 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: release
on:
push:
tags:
- v*

env:
GO_VERSION: 1.19

jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
- uses: actions/cache@v3
if: ${{ !env.ACT }}
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
51 changes: 51 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/godown/main.go
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- "386"
- arm
- arm64
goarm:
- "6"
- "7"
ignore:
- goos: windows
goarch: "6"
archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "checksums.txt"
changelog:
groups:
- title: "New Features"
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: "Bug fixes"
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: "Documentation updates"
regexp: "^.*docs[(\\w)]*:+.*$"
order: 2
- title: "Other"
order: 999
release:
prerelease: auto
mode: append
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ Will work on this list when I got some free time. If you want to contribute, fee
- [ ] UDP flood attack.
- [ ] Add support for connecting multiple applications (ddos) and attack the same host.
- [ ] Move necessary code to /pkg.
- [ ] Add binary for windows.
- [ ] Add binary for linux.
- [ ] Add binary for mac.
- [x] Add binary for windows.
- [x] Add binary for linux.
- [x] Add binary for mac.

# Attacks

Expand Down

0 comments on commit 8d03416

Please sign in to comment.