Skip to content

chore(build): Collapse binary names so the release can bundle them #15

chore(build): Collapse binary names so the release can bundle them

chore(build): Collapse binary names so the release can bundle them #15

Workflow file for this run

name: release
on:
push:
tags:
- 'v*'
env:
GO_VERSION: 1.23.x
ZIG_VERSION: 0.13.0
GOLINT_ARGS: -v --allow-parallel-runners --timeout=10m --disable errcheck
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout ⤵️
uses: actions/checkout@v4
- name: Setup Go 🛠️
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Setup Zig 🛠️
uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ env.ZIG_VERSION }}
- name: Test pkg library 🧪
run: |
cd pkg
go test -race -mod=readonly ./...
- name: Test 🧪
run: |
cd runtimes/cloudformation
go test -race -mod=readonly ./...
- name: Lint 🪥
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
working-directory: ./runtimes/cloudformation/cmd/handler
args: ${{ env.GOLINT_ARGS }}
- name: Run GoReleaser 🏗️
id: goreleaser
uses: goreleaser/goreleaser-action@v6
with:
args: build --clean --snapshot --parallelism=1
workdir: ./runtimes/cloudformation
env:
BUILD_VERSION: ${{ github.ref_name }}
GORELEASER_CURRENT_TAG: "0.0.0"
- name: Archive Artifacts 🗄️
uses: actions/upload-artifact@v4
with:
name: handler-${{ github.ref_name }}
path: |
./runtimes/cloudformation/dist
- name: Create release 🌟
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
fail_on_unmatched_files: true
name: handler-${{ github.ref_name }}
files: |
./runtimes/cloudformation/dist/*
./runtimes/cloudformation/dist/handler/*