Skip to content

Commit

Permalink
chore: Fix release installation of goversioninfo
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Oct 31, 2022
1 parent 3fbd504 commit e6b0a68
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ jobs:
run: |
sudo apt-get --quiet update
sudo apt-get --no-install-suggests --no-install-recommends --quiet --yes install musl-tools snapcraft
go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo@v${{ env.GOVERSIONINFO_VERSION }}
go run ./internal/cmds/execute-template -output ./versioninfo.json ./assets/templates/versioninfo.json.tmpl
goversioninfo -platform-specific
- name: create-syso
run: |
make create-syso
- name: build-release
if: github.event_name == 'push' || needs.changes.outputs.code == 'true'
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757
Expand Down Expand Up @@ -400,9 +400,6 @@ jobs:
sudo apt-get --no-install-suggests --no-install-recommends --quiet --yes install musl-tools snapcraft
sudo snap install --classic snapcraft
sudo apt-get --quiet remove snapcraft
go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo@v${{ env.GOVERSIONINFO_VERSION }}
go run ./internal/cmds/execute-template -output ./versioninfo.json ./assets/templates/versioninfo.json.tmpl
goversioninfo -platform-specific
- name: check-snapcraft-credentials
run: snapcraft whoami
env:
Expand All @@ -415,6 +412,9 @@ jobs:
cache: true
go-version: ${{ env.GO_VERSION }}
- uses: sigstore/cosign-installer@9becc617647dfa20ae7b1151972e9b3a2c338a2b
- name: create-syso
run: |
make create-syso
- uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757
with:
version: latest
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ format: ensure-gofumpt
format-yaml:
find . -name \*.yaml -o -name \*.yml | xargs ./assets/scripts/format-yaml.py

.PHONY: create-syso ensure-goversioninfo
.PHONY: create-syso
create-syso: ensure-goversioninfo
${GO} run ./internal/cmds/execute-template -output ./versioninfo.json ./assets/templates/versioninfo.json.tmpl
./bin/goversioninfo -platform-specific
Expand Down

0 comments on commit e6b0a68

Please sign in to comment.