Skip to content

feat: add support for options in cmd #599

feat: add support for options in cmd

feat: add support for options in cmd #599

Workflow file for this run

# Code generated by shipbuilder init 1.21.0. DO NOT EDIT.
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
outputs:
version: ${{ steps.version.outputs.version }}
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Generate next version
id: version
uses: conventional-actions/next-version@v1
- name: Setup .netrc
uses: conventional-actions/setup-netrc@v1
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
cache: true
- name: Build Go code
uses: conventional-actions/go-build@v1
with:
package: ./...
platforms: |
linux/amd64
linux/arm64
release:
name: Release
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
needs:
- build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Create Release
uses: conventional-actions/create-release@v1
with:
tag_name: ${{ needs.build.outputs.version }}
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}