Skip to content

Commit

Permalink
Revert "improve: generate and publish openapi spec in release" (#3705)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorganca authored Nov 22, 2022
1 parent a55915d commit 2b5814e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/cd-binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: binaries
path: |
dist/
openapi-*.json
path: dist/

publish:
runs-on: ubuntu-latest
Expand All @@ -64,7 +62,7 @@ jobs:
- run: |
# fail fast if the release does not exist
gh release view v${{ needs.prepare.outputs.release-name }} || exit 1
gh release upload v${{ needs.prepare.outputs.release-name }} *-checksums.txt *.zip *.deb *.rpm openapi-*.json
gh release upload v${{ needs.prepare.outputs.release-name }} *.txt *.zip *.deb *.rpm
env:
GH_TOKEN: ${{ github.token }}
Expand Down
3 changes: 0 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,3 @@ checksum:
name_template: "{{ .ProjectName }}-checksums.txt"
snapshot:
name_template: "{{ .Env.RELEASE_NAME }}"
before:
hooks:
- go run -ldflags '-s -X github.com/infrahq/infra/internal.Version={{ .Version }}' ./internal/openapigen ./openapi-{{ .Version }}.json

0 comments on commit 2b5814e

Please sign in to comment.