Skip to content

Commit

Permalink
Allow for snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-zorn committed Aug 15, 2024
1 parent cb97a1c commit fc50118
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/actions/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ inputs:
description: 'Is this a dry run. If so no package will be published.'
required: false
default: 'true'
snapshot:
description: 'Create a snapshot release by passing --snapshot to goreleaser. See also `goreleaser release --help'
default: 'false'
tag:
description: 'Tag to upload artifacts to.'
required: true
Expand Down Expand Up @@ -61,7 +64,10 @@ runs:
--workdir "$PWD"
--tty
"$CONTAINER_ID"
goreleaser release ${{ inputs.dry-run == 'true' && '--skip=publish' || '' }} --config .goreleaser.yaml
goreleaser release
${{ inputs.dry-run == 'true' && '--skip=publish' || '' }}
${{ inputs.snapshot == 'true' && '--snapshot' || '' }}
--config .goreleaser.yaml
env:
GITHUB_TOKEN: ${{ inputs.token }}
HOMEBREW_DEPLOY_KEY: ${{ inputs.homebrew-gh-secret }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/mike-test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
id: publish
with:
dry-run: 'true'
snapshot: 'true'
token: ${{ secrets.GITHUB_TOKEN }}
homebrew-gh-secret: ${{secrets.HOMEBREW_DEPLOY_KEY}}
tag: ${{ needs.release-please.outputs.tag_name }}

0 comments on commit fc50118

Please sign in to comment.