Skip to content

fix(json): add YAMLToJSONCompatibleGoType, tests, and fix YAML merge … #22

fix(json): add YAMLToJSONCompatibleGoType, tests, and fix YAML merge …

fix(json): add YAMLToJSONCompatibleGoType, tests, and fix YAML merge … #22

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
packages: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Install mise
uses: jdx/mise-action@v3
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: "go.mod"
cache: true
- name: Run tests
run: mise run test
- name: Install syft for SBOM generation
run: |
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: release-artifacts
path: |
dist/
!dist/*.txt
retention-days: 30