Skip to content
2 changes: 1 addition & 1 deletion .github/actions/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ runs:
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release ${{ inputs.dry-run == 'true' && '--skip=publish' || '' }}
args: release ${{ inputs.dry-run == 'true' && '--skip=publish' || '' }} --config .goreleaser.yaml
Comment thread
cwaldren-ld marked this conversation as resolved.
env:
GITHUB_TOKEN: ${{ inputs.token }}
HOMEBREW_DEPLOY_KEY: ${{ inputs.homebrew-gh-secret }}
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/manual-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@ on:
workflow_dispatch:
inputs:
dry-run:
default: true
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorted these values.

description: 'Skip publishing to DockerHub and Homebrew'
type: boolean
required: false
type: boolean
dry-run-npm:
default: true
description: 'Skip publishing to npm'
required: false
type: boolean
tag:
description: 'Tag to upload binary artifacts to'
type: string
required: true
type: string

jobs:
release-ldcli:
Expand Down Expand Up @@ -42,6 +47,7 @@ jobs:

release-ldcli-npm:
runs-on: ubuntu-latest
if: ${{ inputs.dry-run-npm == false }}
Comment thread
cwaldren-ld marked this conversation as resolved.
needs: ['release-ldcli']
permissions:
actions: read
Expand Down
12 changes: 11 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
# .goreleaser.yaml
builds:
- id: ldcli
binary: ldcli
goos:
- linux
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running the binary in a linux environment would fail if it's built with CGO.

dockers:
# AMD64
- image_templates:
Expand Down