Skip to content

Commit 2b5814e

Browse files
authored
Revert "improve: generate and publish openapi spec in release" (#3705)
1 parent a55915d commit 2b5814e

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

.github/workflows/cd-binaries.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ jobs:
4848
- uses: actions/upload-artifact@v3
4949
with:
5050
name: binaries
51-
path: |
52-
dist/
53-
openapi-*.json
51+
path: dist/
5452

5553
publish:
5654
runs-on: ubuntu-latest
@@ -64,7 +62,7 @@ jobs:
6462
- run: |
6563
# fail fast if the release does not exist
6664
gh release view v${{ needs.prepare.outputs.release-name }} || exit 1
67-
gh release upload v${{ needs.prepare.outputs.release-name }} *-checksums.txt *.zip *.deb *.rpm openapi-*.json
65+
gh release upload v${{ needs.prepare.outputs.release-name }} *.txt *.zip *.deb *.rpm
6866
env:
6967
GH_TOKEN: ${{ github.token }}
7068

.goreleaser.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,3 @@ checksum:
6161
name_template: "{{ .ProjectName }}-checksums.txt"
6262
snapshot:
6363
name_template: "{{ .Env.RELEASE_NAME }}"
64-
before:
65-
hooks:
66-
- go run -ldflags '-s -X github.com/infrahq/infra/internal.Version={{ .Version }}' ./internal/openapigen ./openapi-{{ .Version }}.json

0 commit comments

Comments
 (0)