Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
- name: "Place wintun.dll"
run: cp deps/wintun/bin/amd64/wintun.dll ./
- name: build
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v7
env:
BUILD_ENV: "development"
with:
version: latest
version: "~> v2"
args: build --clean --snapshot --verbose
- name: Upload flyctl for preflight
uses: actions/upload-artifact@v6
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser
if: steps.cache.outputs.cache-hit != 'true' # do not run if cache hit
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v7
with:
distribution: goreleaser-pro
version: latest
version: "~> v2"
args: release --clean -f .goreleaser.2.yml --fail-fast --split
env:
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
Expand Down Expand Up @@ -143,10 +143,10 @@ jobs:
overwrite: true
- name: Github release
if: steps.cache.outputs.cache-hit != 'true' && github.ref == 'refs/heads/master'
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v7
with:
distribution: goreleaser-pro
version: latest
version: "~> v2"
args: continue --merge
env:
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
Expand Down
2 changes: 2 additions & 0 deletions .goreleaser.2.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# This config targets the new flypkgs distribution system. Once all releases are
# being served by flypkgs, this file will replace .goreleaser.yml and .goreleaser.dev.yml

version: 2

env:
- BUILD_ENV={{if index .Env "BUILD_ENV"}}{{.Env.BUILD_ENV}}{{else}}production{{end}}

Expand Down
6 changes: 4 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

env:
- BUILD_ENV={{if index .Env "BUILD_ENV"}}{{.Env.BUILD_ENV}}{{else}}production{{end}}

Expand Down Expand Up @@ -95,7 +97,7 @@ checksum:
name_template: "checksums.txt"

snapshot:
name_template: "{{.Version}}-{{.Branch}}.{{.CommitTimestamp}}"
version_template: "{{.Version}}-{{.Branch}}.{{.CommitTimestamp}}"

changelog:
sort: asc
Expand All @@ -108,7 +110,7 @@ brews:
- repository:
owner: superfly
name: homebrew-tap
folder: Formula
directory: Formula
homepage: https://fly.io
skip_upload: auto
test: |
Expand Down
Loading