Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit be8f025

Browse files
authored
Convert to GitHub Actions (#15)
1 parent 636a3da commit be8f025

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+198
-239
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Java CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Set up JDK
12+
uses: actions/setup-java@v2
13+
with:
14+
java-version: '8'
15+
distribution: 'adopt'
16+
- name: Build with Maven
17+
run: mvn --batch-mode --update-snapshots verify

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: publish
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up JDK and Maven Central
14+
uses: actions/setup-java@v2
15+
with:
16+
java-version: '8'
17+
distribution: 'adopt'
18+
server-id: ossrh
19+
server-username: MAVEN_USERNAME
20+
server-password: MAVEN_PASSWORD
21+
- name: 'Get Previous tag'
22+
id: previoustag
23+
uses: "WyriHaximus/github-action-get-previous-tag@v1"
24+
- name: Set version in pom.xml
25+
run: |
26+
sed -i -e "s/0.0.0/${{ steps.previoustag.outputs.tag }}/" pom.xml
27+
cat pom.xml
28+
- name: Publish package
29+
run: mvn --batch-mode deploy
30+
env:
31+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
32+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ fabric.properties
5959
**/bin/
6060
*.iml
6161
.project
62-
63-
gettyimagesapi-sdk/.settings/
62+
.settings/
6463
.classpath
6564
.settings/org.eclipse.core.resources.prefs
6665
.settings/org.eclipse.m2e.core.prefs

.travis.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

gettyimagesapi-sdk/pom.xml

Lines changed: 0 additions & 177 deletions
This file was deleted.

0 commit comments

Comments
 (0)