release v0.3.4 #1
Workflow file for this run
This file contains hidden or 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
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Build linux/amd64 | |
| env: | |
| CGO_ENABLED: 0 | |
| GOOS: linux | |
| GOARCH: amd64 | |
| run: | | |
| go build -ldflags="-s -w" -o https_proxy_linux_amd64 main.go | |
| - name: Build linux/arm64 | |
| env: | |
| CGO_ENABLED: 0 | |
| GOOS: linux | |
| GOARCH: arm64 | |
| run: | | |
| go build -ldflags="-s -w" -o https_proxy_linux_arm64 main.go | |
| - name: Build darwin/amd64 | |
| env: | |
| CGO_ENABLED: 0 | |
| GOOS: darwin | |
| GOARCH: amd64 | |
| run: | | |
| go build -ldflags="-s -w" -o https_proxy_darwin_amd64 main.go | |
| - name: Build darwin/arm64 | |
| env: | |
| CGO_ENABLED: 0 | |
| GOOS: darwin | |
| GOARCH: arm64 | |
| run: | | |
| go build -ldflags="-s -w" -o https_proxy_darwin_arm64 main.go | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| generate_release_notes: true | |
| files: | | |
| https_proxy_linux_amd64 | |
| https_proxy_linux_arm64 | |
| https_proxy_darwin_amd64 | |
| https_proxy_darwin_arm64 | |
| config.example.yaml |