Skip to content

Commit 7eed7f9

Browse files
committed
Update version bump workflow.
1 parent ecd3d75 commit 7eed7f9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/fly-deploy.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,17 @@ jobs:
6868
jq --arg v "$VERSION" '.version = $v' package.json > package.tmp.json && mv package.tmp.json package.json
6969
jq --arg v "$VERSION" '.version = $v' frontend/package.json > frontend/package.tmp.json && mv frontend/package.tmp.json frontend/package.json
7070
sed -i "s/const version = .*/const version = \"$VERSION\"/" go-relay/cmd/server/main.go
71+
sed -i "s/const apiVersion = .*/const apiVersion = \"$VERSION\"/" go-relay/cmd/docgen/main.go
72+
73+
# Regenerate OpenAPI / AsyncAPI / api-docs JSON with the new version
74+
go run ./go-relay/cmd/docgen/
7175
7276
# Configure git
7377
git config --global user.name 'github-actions[bot]'
7478
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
7579
7680
# Commit and push changes only if something actually changed
77-
git add package.json frontend/package.json go-relay/cmd/server/main.go
81+
git add package.json frontend/package.json go-relay/cmd/server/main.go go-relay/cmd/docgen/main.go public/openapi.json public/asyncapi.json public/api-docs.json
7882
if git diff --cached --quiet; then
7983
echo "Version already up to date, skipping commit"
8084
else

0 commit comments

Comments
 (0)