Skip to content

Commit

Permalink
Convert to GitHub Actions (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
mapitman authored Jun 1, 2021
1 parent 636a3da commit be8f025
Show file tree
Hide file tree
Showing 59 changed files with 198 additions and 239 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Java CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: publish

on:
release:
types: [released]

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK and Maven Central
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
- name: Set version in pom.xml
run: |
sed -i -e "s/0.0.0/${{ steps.previoustag.outputs.tag }}/" pom.xml
cat pom.xml
- name: Publish package
run: mvn --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ fabric.properties
**/bin/
*.iml
.project

gettyimagesapi-sdk/.settings/
.settings/
.classpath
.settings/org.eclipse.core.resources.prefs
.settings/org.eclipse.m2e.core.prefs
52 changes: 0 additions & 52 deletions .travis.yml

This file was deleted.

177 changes: 0 additions & 177 deletions gettyimagesapi-sdk/pom.xml

This file was deleted.

Loading

0 comments on commit be8f025

Please sign in to comment.