diff --git a/.github/workflows/on_push.yaml b/.github/workflows/on_push.yaml index bc34ea2..873dc14 100644 --- a/.github/workflows/on_push.yaml +++ b/.github/workflows/on_push.yaml @@ -14,15 +14,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: # so we get proper snapshot version info fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: 1.18 + go-version: 1.21 - uses: actions/cache@v2 with: @@ -34,7 +34,7 @@ jobs: ${{ runner.os }}-go- - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v4 with: version: latest args: release --rm-dist --snapshot diff --git a/.github/workflows/on_tag.yaml b/.github/workflows/on_tag.yaml index d8cb268..8a28718 100644 --- a/.github/workflows/on_tag.yaml +++ b/.github/workflows/on_tag.yaml @@ -11,12 +11,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: 1.18 + go-version: 1.21 - uses: actions/cache@v2 with: @@ -28,7 +28,7 @@ jobs: ${{ runner.os }}-go- - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v4 env: GITHUB_TOKEN: ${{ secrets.TOKEN }} with: diff --git a/.goreleaser.yml b/.goreleaser.yml index 83c5816..b8b3587 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -11,12 +11,7 @@ builds: - darwin - windows archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + - name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' format_overrides: - goos: windows format: zip @@ -37,7 +32,7 @@ release: name: vproxy brews: - - tap: + - repository: owner: jittering name: homebrew-kegs @@ -64,35 +59,13 @@ brews: - name: mkcert - name: nss - # Specify for packages that run as a service. - # Default is empty. - plist: | - - - - - KeepAlive - - SuccessfulExit - - - Label - #{plist_name} - ProgramArguments - - #{bin}/vproxy - daemon - - RunAtLoad - - WorkingDirectory - #{var} - StandardErrorPath - #{var}/log/vproxy.log - StandardOutPath - #{var}/log/vproxy.log - - + service: | + name: "vproxy" + run: ["#{bin}/vproxy", "daemon"] + keep_alive: successful_exit: false + working_directory: "#{var}" + log_path: "#{var}/log/vproxy.log" + error_log_path: "#{var}/log/vproxy.log" caveats: | To install your local root CA: @@ -199,7 +172,7 @@ brews: end end - - tap: + - repository: owner: jittering name: homebrew-kegs @@ -227,35 +200,13 @@ brews: - name: nss - name: go - # Specify for packages that run as a service. - # Default is empty. - plist: | - - - - - KeepAlive - - SuccessfulExit - - - Label - #{plist_name} - ProgramArguments - - #{bin}/vproxy - daemon - - RunAtLoad - - WorkingDirectory - #{var} - StandardErrorPath - #{var}/log/vproxy.log - StandardOutPath - #{var}/log/vproxy.log - - + service: | + name: "vproxy-head" + run: ["#{bin}/vproxy", "daemon"] + keep_alive: successful_exit: false + working_directory: "#{var}" + log_path: "#{var}/log/vproxy.log" + error_log_path: "#{var}/log/vproxy.log" caveats: | To install your local root CA: