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 a8e581c
Showing 1 changed file with 4 additions and 2 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

0 comments on commit a8e581c

Please sign in to comment.