Skip to content

introduce OmitEmpty in yaml processing pipeline #87

introduce OmitEmpty in yaml processing pipeline

introduce OmitEmpty in yaml processing pipeline #87

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
binary:
runs-on: ubuntu-latest
strategy:
matrix:
os: [linux, darwin, windows]
arch: [amd64, arm64]
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- run: go version
-
name: Build
run: |
GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} make build
ls -al bin/
-
name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: compose-spec-${{ matrix.os }}-${{ matrix.arch }}
path: ./bin/*
if-no-files-found: error
release:
permissions:
contents: write # to create a release (ncipollo/release-action)
runs-on: ubuntu-latest
needs:
- binary
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Download artifacts
uses: actions/download-artifact@v4
with:
path: bin/
merge-multiple: true
-
name: GitHub Release
uses: ncipollo/release-action@v1
with:
artifacts: bin/*
generateReleaseNotes: true
draft: true
token: ${{ secrets.GITHUB_TOKEN }}