diff --git a/.github/actions/publish/action.yml b/.github/actions/publish/action.yml index 1d8d0873..413366fe 100644 --- a/.github/actions/publish/action.yml +++ b/.github/actions/publish/action.yml @@ -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 env: GITHUB_TOKEN: ${{ inputs.token }} HOMEBREW_DEPLOY_KEY: ${{ inputs.homebrew-gh-secret }} diff --git a/.github/workflows/manual-publish.yml b/.github/workflows/manual-publish.yml index 915058ce..1e370cc2 100644 --- a/.github/workflows/manual-publish.yml +++ b/.github/workflows/manual-publish.yml @@ -3,14 +3,19 @@ on: workflow_dispatch: inputs: dry-run: + default: true 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: @@ -42,6 +47,7 @@ jobs: release-ldcli-npm: runs-on: ubuntu-latest + if: ${{ inputs.dry-run-npm == false }} needs: ['release-ldcli'] permissions: actions: read diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 3c7d5bf0..6e443cc2 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,4 +1,14 @@ -# .goreleaser.yaml +builds: + - id: ldcli + binary: ldcli + goos: + - linux + - darwin + goarch: + - amd64 + - arm64 + env: + - CGO_ENABLED=0 dockers: # AMD64 - image_templates: