@@ -45,120 +45,120 @@ jobs:
45
45
46
46
- run : rm -rf ~/.gradle/gradle.properties
47
47
48
- update_readme :
49
- runs-on : ubuntu-latest
50
-
51
- needs : [release_tag]
52
- if : startsWith( github.ref, 'refs/tags/')
53
-
54
- steps :
55
- # Get GitHub token via the CT SDKs App
56
- - name : Generate GitHub token (via CT SDKs App)
57
- id : generate_github_token
58
- uses : actions/create-github-app-token@a0de6af83968303c8c955486bf9739a57d23c7f1 # v1
59
- with :
60
- app-id : ${{ secrets.CT_SDKS_APP_ID }}
61
- private-key : ${{ secrets.CT_SDKS_APP_PEM }}
62
-
63
- - name : Get App user
64
- id : get_app_user
65
- env :
66
- GITHUB_TOKEN : ${{ steps.generate_github_token.outputs.token }}
67
- run : |
68
- export GH_APP_USER=`gh api /users/ct-sdks%5Bbot%5D | jq .id`
69
- echo "email=${GH_APP_USER}+ct-sdks[bot]@users.noreply.github.com" >> "$GITHUB_OUTPUT"
70
-
71
- - name : Checkout
72
- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
73
- with :
74
- ref : main
75
- token : ${{ steps.generate_github_token.outputs.token }}
76
-
77
- - uses : gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2
78
-
79
- - run : ./gradlew -Pversion=${{ github.ref_name }} writeVersionToExamples writeVersionToReadme setVersion nextMinorVersion snapshotVersion
80
-
81
- - name : " Switch SDK to after release branch"
82
- run : |
83
- git fetch --depth=1 origin after-release || true
84
- git checkout -B after-release origin/after-release || true
85
- git checkout -B after-release
86
- git log -1
87
-
88
- - name : " update changelog"
89
- run : |
90
- gh api /repos/commercetools/commercetools-sdk-java-v2/releases --paginate > releases.json
91
- node scripts/changelog.js > CHANGELOG.md
92
- rm -rf releases.json
93
- env :
94
- GH_TOKEN : ${{ steps.generate_github_token.outputs.token }}
95
-
96
- - name : " remove API reference commit SHA"
97
- run : rm -rf reference.txt
98
- continue-on-error : true
99
-
100
- - uses : stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1
101
- with :
102
- branch : after-release
103
- commit_message : " TASK: Updating version in README"
104
- commit_author : ct-sdks[bot] <${{ steps.get_app_user.outputs.email }}>
105
- commit_user_name : ct-sdks[bot]
106
- commit_user_email : ${{ steps.get_app_user.outputs.email }}
107
-
108
- docs :
109
- name : Build and release docs
110
-
111
- runs-on : ubuntu-latest
112
- needs : [release_tag]
113
- if : startsWith( github.ref, 'refs/tags/')
114
- steps :
115
- # Get GitHub token via the CT SDKs App
116
- - name : Generate GitHub token (via CT SDKs App)
117
- id : generate_github_token
118
- uses : actions/create-github-app-token@a0de6af83968303c8c955486bf9739a57d23c7f1 # v1
119
- with :
120
- app-id : ${{ secrets.CT_SDKS_APP_ID }}
121
- private-key : ${{ secrets.CT_SDKS_APP_PEM }}
122
-
123
- - name : Get App user
124
- id : get_app_user
125
- env :
126
- GITHUB_TOKEN : ${{ steps.generate_github_token.outputs.token }}
127
- run : |
128
- export GH_APP_USER=`gh api /users/ct-sdks%5Bbot%5D | jq .id`
129
- echo "email=${GH_APP_USER}+ct-sdks[bot]@users.noreply.github.com" >> "$GITHUB_OUTPUT"
130
-
131
- - name : Checkout
132
- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
133
- with :
134
- path : sdk
135
- token : ${{ steps.generate_github_token.outputs.token }}
136
-
137
- - name : Checkout
138
- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
139
- with :
140
- path : doc
141
- ref : gh-pages
142
- token : ${{ steps.generate_github_token.outputs.token }}
143
-
144
- - name : Setup Java
145
- uses : actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4
146
- with :
147
- distribution : ' temurin'
148
- java-version : ' 17'
149
-
150
- - name : Setup Graphviz
151
- uses : ts-graphviz/setup-graphviz@b1de5da23ed0a6d14e0aeee8ed52fdd87af2363c # v2.0.2
152
-
153
- - run : ./gradlew -Pversion=${{ github.ref_name }} alljavadoc
154
- working-directory : sdk
155
-
156
- - run : rsync -r sdk/build/docs/javadoc/ doc/javadoc
157
-
158
- - uses : stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1
159
- with :
160
- repository : doc
161
- commit_message : " Update javadoc"
162
- commit_author : ct-sdks[bot] <${{ steps.get_app_user.outputs.email }}>
163
- commit_user_name : ct-sdks[bot]
164
- commit_user_email : ${{ steps.get_app_user.outputs.email }}
48
+ # update_readme:
49
+ # runs-on: ubuntu-latest
50
+ #
51
+ # needs: [release_tag]
52
+ # if: startsWith( github.ref, 'refs/tags/')
53
+ #
54
+ # steps:
55
+ # # Get GitHub token via the CT SDKs App
56
+ # - name: Generate GitHub token (via CT SDKs App)
57
+ # id: generate_github_token
58
+ # uses: actions/create-github-app-token@a0de6af83968303c8c955486bf9739a57d23c7f1 # v1
59
+ # with:
60
+ # app-id: ${{ secrets.CT_SDKS_APP_ID }}
61
+ # private-key: ${{ secrets.CT_SDKS_APP_PEM }}
62
+ #
63
+ # - name: Get App user
64
+ # id: get_app_user
65
+ # env:
66
+ # GITHUB_TOKEN: ${{ steps.generate_github_token.outputs.token }}
67
+ # run: |
68
+ # export GH_APP_USER=`gh api /users/ct-sdks%5Bbot%5D | jq .id`
69
+ # echo "email=${GH_APP_USER}+ct-sdks[bot]@users.noreply.github.com" >> "$GITHUB_OUTPUT"
70
+ #
71
+ # - name: Checkout
72
+ # uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
73
+ # with:
74
+ # ref: main
75
+ # token: ${{ steps.generate_github_token.outputs.token }}
76
+ #
77
+ # - uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2
78
+ #
79
+ # - run: ./gradlew -Pversion=${{ github.ref_name }} writeVersionToExamples writeVersionToReadme setVersion nextMinorVersion snapshotVersion
80
+ #
81
+ # - name: "Switch SDK to after release branch"
82
+ # run: |
83
+ # git fetch --depth=1 origin after-release || true
84
+ # git checkout -B after-release origin/after-release || true
85
+ # git checkout -B after-release
86
+ # git log -1
87
+ #
88
+ # - name: "update changelog"
89
+ # run: |
90
+ # gh api /repos/commercetools/commercetools-sdk-java-v2/releases --paginate > releases.json
91
+ # node scripts/changelog.js > CHANGELOG.md
92
+ # rm -rf releases.json
93
+ # env:
94
+ # GH_TOKEN: ${{ steps.generate_github_token.outputs.token }}
95
+ #
96
+ # - name: "remove API reference commit SHA"
97
+ # run: rm -rf reference.txt
98
+ # continue-on-error: true
99
+ #
100
+ # - uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1
101
+ # with:
102
+ # branch: after-release
103
+ # commit_message: "TASK: Updating version in README"
104
+ # commit_author: ct-sdks[bot] <${{ steps.get_app_user.outputs.email }}>
105
+ # commit_user_name: ct-sdks[bot]
106
+ # commit_user_email: ${{ steps.get_app_user.outputs.email }}
107
+ #
108
+ # docs:
109
+ # name: Build and release docs
110
+ #
111
+ # runs-on: ubuntu-latest
112
+ # needs: [release_tag]
113
+ # if: startsWith( github.ref, 'refs/tags/')
114
+ # steps:
115
+ # # Get GitHub token via the CT SDKs App
116
+ # - name: Generate GitHub token (via CT SDKs App)
117
+ # id: generate_github_token
118
+ # uses: actions/create-github-app-token@a0de6af83968303c8c955486bf9739a57d23c7f1 # v1
119
+ # with:
120
+ # app-id: ${{ secrets.CT_SDKS_APP_ID }}
121
+ # private-key: ${{ secrets.CT_SDKS_APP_PEM }}
122
+ #
123
+ # - name: Get App user
124
+ # id: get_app_user
125
+ # env:
126
+ # GITHUB_TOKEN: ${{ steps.generate_github_token.outputs.token }}
127
+ # run: |
128
+ # export GH_APP_USER=`gh api /users/ct-sdks%5Bbot%5D | jq .id`
129
+ # echo "email=${GH_APP_USER}+ct-sdks[bot]@users.noreply.github.com" >> "$GITHUB_OUTPUT"
130
+ #
131
+ # - name: Checkout
132
+ # uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
133
+ # with:
134
+ # path: sdk
135
+ # token: ${{ steps.generate_github_token.outputs.token }}
136
+ #
137
+ # - name: Checkout
138
+ # uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
139
+ # with:
140
+ # path: doc
141
+ # ref: gh-pages
142
+ # token: ${{ steps.generate_github_token.outputs.token }}
143
+ #
144
+ # - name: Setup Java
145
+ # uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4
146
+ # with:
147
+ # distribution: 'temurin'
148
+ # java-version: '17'
149
+ #
150
+ # - name: Setup Graphviz
151
+ # uses: ts-graphviz/setup-graphviz@b1de5da23ed0a6d14e0aeee8ed52fdd87af2363c # v2.0.2
152
+ #
153
+ # - run: ./gradlew -Pversion=${{ github.ref_name }} alljavadoc
154
+ # working-directory: sdk
155
+ #
156
+ # - run: rsync -r sdk/build/docs/javadoc/ doc/javadoc
157
+ #
158
+ # - uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1
159
+ # with:
160
+ # repository: doc
161
+ # commit_message: "Update javadoc"
162
+ # commit_author: ct-sdks[bot] <${{ steps.get_app_user.outputs.email }}>
163
+ # commit_user_name: ct-sdks[bot]
164
+ # commit_user_email: ${{ steps.get_app_user.outputs.email }}
0 commit comments