Skip to content

flags: Use option.NewNamedMapOptions #1264

flags: Use option.NewNamedMapOptions

flags: Use option.NewNamedMapOptions #1264

Workflow file for this run

on:
pull_request: {}
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: Release
jobs:
build:
name: Create Release ${{ github.event_name == 'pull_request' && '(dry-run)' }}
if: github.repository == 'cilium/cilium-cli'
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
# renovate: datasource=golang-version depName=go
go-version: 1.22.5
- name: Generate the artifacts
run: make release
- name: Create Release
if: github.event_name == 'push'
uses: softprops/action-gh-release@a74c6b72af54cfa997e81df42d94703d6313a2d0 # v2.0.6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
name: Release ${{ github.ref_name }}
draft: true
prerelease: false
generate_release_notes: true
files: 'release/*'