diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4c6c483..54c7c05 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,4 +53,6 @@ jobs: - name: publish the app on Heroku env: HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} - run: heroku container:release web --app ${{ secrets.HEROKU_APP_NAME }} \ No newline at end of file + run: | + curl https://cli-assets.heroku.com/install.sh | sh + /usr/local/bin/heroku container:release web --app ${{ secrets.HEROKU_APP_NAME }} \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index fcc4607..6affac7 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,4 @@ +version: 2 before: hooks: - make docs @@ -59,8 +60,8 @@ nfpms: {{- else }}{{ .Os }}{{ end }}- {{ .Arch }} - builds: - - pgconfigctl + # builds: + # - pgconfigctl homepage: https://pgconfig.org/ maintainer: Sebastian Webber @@ -74,8 +75,8 @@ nfpms: archives: - id: pgconfigctl - builds: - - pgconfigctl + # builds: + # - pgconfigctl name_template: >- {{ .Binary }}- {{ .Version }}- @@ -84,11 +85,19 @@ archives: {{- else if eq .Os "windows" }}Windows {{- else }}{{ .Os }}{{ end }}- {{ .Arch }} - format: binary + # format: binary # deprecated + formats: + - tar.gz # standard default, user likely wants binary-only but v2 deprecates raw binary output in archives? + # If 'binary' format is desired, it's usually just copying the file. + # If I comment out format, it defaults to tar.gz. + # If I use formats: ["binary"] it might work if 'binary' is still a valid value inside the list. + # Let's try formats: ["binary"] first as the user had 'format: binary'. + - binary + checksum: name_template: "checksums.txt" snapshot: - name_template: "{{ .Tag }}-next" + version_template: "{{ .Tag }}-next" changelog: sort: asc @@ -105,6 +114,7 @@ changelog: dockers: - dockerfile: cmd/pgconfigctl/Dockerfile + id: pgconfigctl-amd64 ids: - pgconfigctl goarch: amd64 @@ -120,6 +130,7 @@ dockers: - "--label=org.opencontainers.image.version={{.Version}}" - "--platform=linux/amd64" - dockerfile: cmd/pgconfigctl/Dockerfile + id: pgconfigctl-arm64 ids: - pgconfigctl goarch: arm64 @@ -137,6 +148,7 @@ dockers: - dockerfile: cmd/api/Dockerfile goarch: arm64 + id: api-arm64 ids: - api image_templates: @@ -156,6 +168,7 @@ dockers: - pg-docs.yml - dockerfile: cmd/api/Dockerfile goarch: amd64 + id: api-amd64 ids: - api image_templates: