File tree Expand file tree Collapse file tree 5 files changed +870
-3
lines changed
algoliasearch-client-java-2/.github/workflows
algoliasearch-client-javascript Expand file tree Collapse file tree 5 files changed +870
-3
lines changed Original file line number Diff line number Diff line change @@ -242,9 +242,7 @@ jobs:
242
242
run : yarn cli cts run ${{ matrix.client.language }}
243
243
244
244
- name : Zip artifact before storing
245
- run :
246
- zip -r -y clients-${{ matrix.client.language }}.zip ${{ matrix.client.path }} ${{ matrix.client.testsToStore }} -x \
247
- " **/node_modules**" " clients/algoliasearch-client-javascript/.yarn**" " **/.github**" " **/build/**" " **/dist/**" " **/.gradle/**" " **/bin/**" " **/vendor/**"
245
+ run : zip -r -y clients-${{ matrix.client.language }}.zip ${{ matrix.client.path }} ${{ matrix.client.testsToStore }} -x "**/node_modules**" "**/.yarn/cache/**" "**/build/**" "**/dist/**" "**/.gradle/**" "**/bin/**" "**/vendor/**"
248
246
249
247
- name : Store ${{ matrix.client.language }} clients
250
248
uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change
1
+ name : Publish jar
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - next
7
+
8
+ jobs :
9
+ release :
10
+ name : Publish to Sonatype
11
+ runs-on : ubuntu-20.04
12
+ if : " startsWith(github.event.head_commit.message, 'chore: release')"
13
+ env :
14
+ ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.SONATYPE_NEXUS_USERNAME }}
15
+ ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
16
+ ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.SIGNING_PRIVATE_KEY }}
17
+ ORG_GRADLE_PROJECT_signingInMemoryKeyId : ${{ secrets.SIGNING_PRIVATE_KEY_ID }}
18
+ ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ${{ secrets.SIGNING_PRIVATE_KEY_PASSWORD }}
19
+ steps :
20
+ - uses : actions/checkout@v2
21
+
22
+ - name : Install Java
23
+ uses : actions/setup-java@v2
24
+ with :
25
+ distribution : zulu
26
+ java-version : 11.0.4
27
+ cache : gradle
28
+
29
+ - name : Validate gradle wrapper
30
+ uses : gradle/wrapper-validation-action@v1
31
+
32
+ - name : Upload Artifacts
33
+ run : ./gradlew clean publish --no-parallel --stacktrace
34
+
35
+ - name : Check snapshot
36
+ id : snapshot
37
+ run : |
38
+ if [[ $(cat ./gradle.properties | grep 'VERSION_NAME=.*-SNAPSHOT') ]]; then
39
+ echo "::set-output name=IS_SNAPSHOT::true"
40
+ fi
41
+
42
+ - name : Release Artifacts
43
+ if : ${{ steps.snapshot.outputs.IS_SNAPHOT != 'true' }}
44
+ run : ./gradlew closeAndReleaseRepository
Original file line number Diff line number Diff line change
1
+ name : Release packages
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - next
7
+
8
+ jobs :
9
+ release :
10
+ name : Publish
11
+ runs-on : ubuntu-20.04
12
+ if : " startsWith(github.event.head_commit.message, 'chore: release')"
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ with :
16
+ fetch-depth : 0
17
+
18
+ - name : Install Node
19
+ uses : actions/setup-node@v2
20
+ with :
21
+ node-version-file : .nvmrc
22
+ cache : yarn
23
+
24
+ - name : Install JavaScript dependencies
25
+ shell : bash
26
+ run : yarn install
27
+
28
+ - name : Build clients
29
+ shell : bash
30
+ run : yarn build:all
31
+
32
+ - name : Publish to NPM
33
+ shell : bash
34
+ run : yarn release:publish
35
+ env :
36
+ NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change
1
+ nodeLinker : node-modules
2
+
3
+ yarnPath : .yarn/releases/yarn-3.2.1.cjs
You can’t perform that action at this time.
0 commit comments