Skip to content

Commit 7d05dc0

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@bf9fa613.
1 parent 0c14bd7 commit 7d05dc0

File tree

1 file changed

+25
-27
lines changed

1 file changed

+25
-27
lines changed

.github/workflows/maven.yml

+25-27
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,30 @@
1-
name: Publish package to the Maven Central Repository
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
#
4+
# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech)
5+
6+
name: Java CI with Maven
7+
28
on:
39
push:
4-
branches: [master]
10+
branches: [ main, master ]
11+
pull_request:
12+
branches: [ main, master ]
13+
514
jobs:
6-
publish:
15+
build:
16+
name: Build Segment Public API
717
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
java: [ '8' ]
821
steps:
9-
- uses: actions/checkout@v3
10-
- name: Get changes in pom.xml
11-
id: changed-pom
12-
uses: tj-actions/changed-files@v34
13-
with:
14-
files: |
15-
pom.xml
16-
- name: Set up Maven Central Repository
17-
uses: actions/setup-java@v3
18-
with:
19-
java-version: '11'
20-
distribution: 'adopt'
21-
server-id: ossrh
22-
server-username: MAVEN_USERNAME
23-
server-password: MAVEN_PASSWORD
24-
gpg-passphrase: MAVEN_GPG_PASSPHRASE
25-
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
26-
- name: Publish package
27-
if: steps.changed-pom.outputs.any_changed == 'true'
28-
run: mvn --batch-mode clean deploy
29-
env:
30-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
31-
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
32-
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
22+
- uses: actions/checkout@v2
23+
- name: Set up JDK
24+
uses: actions/setup-java@v2
25+
with:
26+
java-version: ${{ matrix.java }}
27+
distribution: 'temurin'
28+
cache: maven
29+
- name: Build with Maven
30+
run: mvn -B package --no-transfer-progress --file pom.xml

0 commit comments

Comments
 (0)