Skip to content

Commit

Permalink
ci: Fix process for publish SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
flemzord committed Dec 21, 2023
1 parent 5c9542a commit e9e0d22
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions releases/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ sdk-publish:
RUN apk update && apk add yq git
WORKDIR /src
GIT CLONE https://github.com/formancehq/formance-sdk-${LANG}.git ./sdks/${LANG}
COPY --dir ./sdks/generate/${LANG} ./sdks/${LANG}
RUN rm -rf ./sdks/${LANG}/*
RUN rm -rf ./sdks/${LANG}/.github/*
COPY --dir ./sdks/${LANG} ./sdks/
WORKDIR /src/sdks/${LANG}
RUN git config --global user.email "[email protected]"
RUN git config --global user.name "NumaryBot"
Expand All @@ -39,7 +41,7 @@ sdk-publish:
RUN git commit -m "release(sdk): ${version}"
RUN git remote remove origin
RUN --secret GITHUB_TOKEN git remote add origin https://${GITHUB_TOKEN}@github.com/formancehq/formance-sdk-${LANG}.git
RUN --secret GITHUB_TOKEN git push origin release/${version_full} --force
RUN --secret GITHUB_TOKEN git push origin release/${version} --force

sdk-generate-all:
ARG --required version
Expand Down
2 changes: 1 addition & 1 deletion releases/templates/sdk/go/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ features:
globalServerURLs: 2.82.0
unions: 2.82.0
go:
version: ""
version: v2.0.0-beta.2
author: Formance
maxMethodParams: 0
packageName: github.com/formancehq/formance-sdk-go
2 changes: 1 addition & 1 deletion releases/templates/sdk/java/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ features:
globalSecurity: 2.81.1
globalServerURLs: 2.82.0
java:
version: ""
version: v2.0.0-beta.2
artifactID: formance-sdk
companyEmail: [email protected]
companyName: Formance
Expand Down
2 changes: 1 addition & 1 deletion releases/templates/sdk/php/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ features:
globalSecurity: 2.81.1
globalServerURLs: 2.82.0
php:
version: ""
version: v2.0.0-beta.2
maxMethodParams: 0
namespace: formance\stack
packageName: formance-sdk-php
2 changes: 1 addition & 1 deletion releases/templates/sdk/python/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ features:
globalSecurity: 2.81.1
globalServerURLs: 2.82.0
python:
version: ""
version: v2.0.0-beta.2
author: Formance
description: Python Client SDK Generated by Speakeasy
maxMethodParams: 0
Expand Down
2 changes: 1 addition & 1 deletion releases/templates/sdk/typescript/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ features:
globalSecurity: 2.81.1
globalServerURLs: 2.82.0
typescript:
version: ""
version: v2.0.0-beta.2
author: Formance
maxMethodParams: 0
packageName: '@formance/formance-sdk'

0 comments on commit e9e0d22

Please sign in to comment.