Skip to content

chore: update CHANGELOG (#1471) #157

chore: update CHANGELOG (#1471)

chore: update CHANGELOG (#1471) #157

Workflow file for this run

name: release
on:
push:
tags:
- "v*"
workflow_dispatch: {}
permissions:
contents: read
jobs:
artifacts:
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- os: linux
arch: amd64
- os: linux
arch: arm64
- os: darwin
arch: amd64
- os: darwin
arch: arm64
steps:
# --------------------------------------------------------------------------
# Repository Checkout
# --------------------------------------------------------------------------
- name: checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0
- name: setup golang
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version-file: go.mod
# --------------------------------------------------------------------------
# Build & Upload Artifacts
# --------------------------------------------------------------------------
- name: build for ${{ matrix.os }} ${{ matrix.arch }}
run: make build GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }}
- name: upload ${{ matrix.os }} ${{ matrix.arch }} artifact
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: bin-${{ matrix.os }}-${{ matrix.arch }}
path: build/ktf.${{ matrix.os }}.${{ matrix.arch }}
if-no-files-found: error
# --------------------------------------------------------------------------
# Generate Checksums
# --------------------------------------------------------------------------
- name: generate checksum for ${{ matrix.os }} ${{ matrix.arch }} artifact
run: sha256sum ktf.${{ matrix.os }}.${{ matrix.arch }} >> CHECKSUMS.${{ matrix.os }}.${{ matrix.arch }}
working-directory: ./build/
- name: upload checksum for ${{ matrix.os }} ${{ matrix.arch }}
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: CHECKSUMS-${{ matrix.os }}-${{ matrix.arch }}
path: build/CHECKSUMS.${{ matrix.os }}.${{ matrix.arch }}
if-no-files-found: error
# --------------------------------------------------------------------------
# Release Job
# --------------------------------------------------------------------------
release:
timeout-minutes: 10
runs-on: ubuntu-latest
needs:
- artifacts
permissions:
contents: write
steps:
# --------------------------------------------------------------------------
# Github Release
# --------------------------------------------------------------------------
- name: download checksums artifact
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
pattern: CHECKSUMS*
merge-multiple: true
- name: concatenate all checksums
run: cat CHECKSUMS.* > CHECKSUMS
- name: download binary artifacts
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
pattern: bin*
merge-multiple: true
- name: Release
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
with:
draft: false
prerelease: false
files: |
CHECKSUMS
ktf.*
body: |
See the [CHANGELOG.md](https://raw.githubusercontent.com/Kong/kubernetes-testing-framework/main/CHANGELOG.md)
env:
GITHUB_TOKEN: ${{ github.token }}