From b286e8f9f1809da8d438f9aecf7b3bf03c9ce931 Mon Sep 17 00:00:00 2001 From: Jonatan Reiners Date: Fri, 26 Apr 2024 21:56:08 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9C=A8=20Update=20setup-go=20and=20actio?= =?UTF-8?q?ns/checkout=20versions.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 10 +++++----- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9fb8c28..9a18aeb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,18 +13,18 @@ on: jobs: binaries: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: 1.22 - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v5 with: version: latest - args: release --rm-dist --skip-publish --snapshot --skip-sign --debug \ No newline at end of file + args: release --rm-dist --skip-publish --snapshot --skip-sign --debug diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9a79700..b5ef84a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go @@ -18,7 +18,7 @@ jobs: with: go-version: 1.22 - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v5 with: version: latest args: release --rm-dist diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 25a4291..3c9e531 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,15 +19,15 @@ jobs: os: [ubuntu-latest, macos-latest] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: 1.22 - name: Setup Prerequisites run: | chmod 765 test/filemode.txt - name: Run tests - run: go test -v -race -cover \ No newline at end of file + run: go test -v -race -cover From 5c848c40c3a80c832685fc419f74ca0b6f6af676 Mon Sep 17 00:00:00 2001 From: Jonatan Reiners Date: Fri, 26 Apr 2024 22:10:44 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=94=A7=20Adjusted=20build=20target=20?= =?UTF-8?q?for=20consistency=20and=20updated=20release=20workflow=20to=20u?= =?UTF-8?q?se=20'clean'=20flag.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 2 +- .goreleaser.yml | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b5ef84a..fde22ab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: uses: goreleaser/goreleaser-action@v5 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GORELEASER_TOKEN: ${{ secrets.GORELEASER_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 0dc8aa9..f64e877 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -12,14 +12,10 @@ builds: - amd64 - "386" goarm: - - 6 + - "6" main: ./bin/ep.go archives: - - replacements: - darwin: Darwin - linux: Linux - 386: i386 - amd64: x86_64 + - id: default checksum: name_template: 'checksums.txt' snapshot: @@ -36,4 +32,4 @@ brews: name: homebrew-taps token: "{{ .Env.GORELEASER_TOKEN }}" homepage: "https://github.com/kreuzwerker/envplate" - description: "Docker-friendly trivial templating for configuration files using environment keys." \ No newline at end of file + description: "Docker-friendly trivial templating for configuration files using environment keys."