Skip to content

Commit

Permalink
Update workflows for GoReleaser 2.0
Browse files Browse the repository at this point in the history
GoReleaser 2.0 gets installed automatically by the action. Rather than rolling back, fix it forward. In particular this skip-validate flag was replaced by skip=validate, and the config files need to be version 2.

Similar to what we did in pulumi/pulumi-converter-terraform#157
  • Loading branch information
justinvp committed Jun 20, 2024
1 parent cd260a7 commit c594ddc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ jobs:
uses: ./.github/workflows/stage-publish.yml
secrets: inherit
with:
goreleaser-args: -p 10 -f .goreleaser.yml --rm-dist --skip-validate --timeout 60m0s --release-notes=CHANGELOG_PENDING.md
goreleaser-args: -p 10 -f .goreleaser.yml --clean --skip=validate --timeout 60m0s --release-notes=CHANGELOG_PENDING.md
vsce-full-release: true
2 changes: 1 addition & 1 deletion .github/workflows/publish-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
uses: ./.github/workflows/stage-publish.yml
secrets: inherit
with:
goreleaser-args: -p 10 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout 60m0s --release-notes=CHANGELOG_PENDING.md
goreleaser-args: -p 10 -f .goreleaser.prerelease.yml --clean --skip=validate --timeout 60m0s --release-notes=CHANGELOG_PENDING.md
3 changes: 1 addition & 2 deletions .goreleaser.prerelease.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
dist: goreleaser
project_name: pulumi-lsp
changelog:
skip: true
version: 2
release:
disable: true
snapshot:
Expand Down
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
dist: goreleaser
project_name: pulumi-lsp
version: 2
snapshot:
name_template: "{{ .Version }}-SNAPSHOT"
checksum:
Expand Down

0 comments on commit c594ddc

Please sign in to comment.