Skip to content

Commit 3fc77d6

Browse files
committed
restore deleted files
1 parent 071a3aa commit 3fc77d6

File tree

4 files changed

+869
-0
lines changed

4 files changed

+869
-0
lines changed
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)