Skip to content

Commit

Permalink
cicd: test
Browse files Browse the repository at this point in the history
  • Loading branch information
xvzc committed Aug 15, 2024
1 parent 9a80415 commit 525b737
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 33 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/publish.yaml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,26 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build_and_publish:
name: Release linux/amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Display Go version
run: go version
- name: Build linux/amd64
env:
GOOS: darwin
GOARCH: amd64
run: |
go build -ldflags="-w -s" github.com/xvzc/SpoofDPI/cmd/spoof-dpi
tar -zcvf "spoof-dpi-$GOOS-$GOARCH.tar.gz" ./spoof-dpi && rm -rf ./spoof-dpi
gh release upload ${{needs.draft_release.outputs.tag_name }} "spoof-dpi-$GOOS-$GOARCH.tar.gz"
# build_and_publish:
# needs: draft_release
# runs-on: ubuntu-latest
Expand Down

0 comments on commit 525b737

Please sign in to comment.