Skip to content

Commit cdf2e70

Browse files
authored
chore: restore deleted files (#693)
1 parent 071a3aa commit cdf2e70

File tree

5 files changed

+870
-3
lines changed

5 files changed

+870
-3
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,7 @@ jobs:
242242
run: yarn cli cts run ${{ matrix.client.language }}
243243

244244
- 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/**"
248246

249247
- name: Store ${{ matrix.client.language }} clients
250248
uses: actions/upload-artifact@v3
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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 }}

clients/algoliasearch-client-javascript/.yarn/releases/yarn-3.2.1.cjs

Lines changed: 786 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nodeLinker: node-modules
2+
3+
yarnPath: .yarn/releases/yarn-3.2.1.cjs

0 commit comments

Comments
 (0)