From fc5011899d8a5b1be76d1bb7ec63242f8f1c8856 Mon Sep 17 00:00:00 2001 From: Mike Zorn Date: Thu, 15 Aug 2024 10:37:53 -0700 Subject: [PATCH] Allow for snapshots --- .github/actions/publish/action.yml | 8 +++++++- .github/workflows/mike-test-build.yml | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/actions/publish/action.yml b/.github/actions/publish/action.yml index a48b3ed0..258104f7 100644 --- a/.github/actions/publish/action.yml +++ b/.github/actions/publish/action.yml @@ -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 @@ -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 }} diff --git a/.github/workflows/mike-test-build.yml b/.github/workflows/mike-test-build.yml index 45521918..2629fb1a 100644 --- a/.github/workflows/mike-test-build.yml +++ b/.github/workflows/mike-test-build.yml @@ -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 }}