Skip to content

Commit c148b18

Browse files
committed
ci: switch to GitHub actions
1 parent 146f854 commit c148b18

8 files changed

Lines changed: 16 additions & 46 deletions

File tree

‎.github/workflows/maven.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,14 @@ jobs:
2020
run: mvn -B package --file pom.xml
2121
- name: Upload code coverage
2222
uses: codecov/codecov-action@v2
23+
- name: Release
24+
if: startsWith(github.ref, 'refs/tags/') && ${{ matrix.java }} == 17
25+
env:
26+
GPG_KEY_NAME: C546418B
27+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
28+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
29+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
30+
run: |
31+
./ci/before-deploy.sh
32+
cp ./ci/.m2.settings.xml $HOME/.m2/settings.xml
33+
mvn deploy -P release -DskipTests=true

‎.travis.yml‎

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

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
| ------------------ |
33
| You **cannot** use this library for Android app development. Have a look at [kaaes/spotify-web-api-android](https://www.github.com/kaaes/spotify-web-api-android) and [Spotify's Android SDK](https://developer.spotify.com/technologies/spotify-android-sdk/) and [see why](https://github.com/spotify-web-api-java/spotify-web-api-java/issues/120#issuecomment-363266591). |
44

5-
Spotify Web API Java [![Build Status](https://travis-ci.org/spotify-web-api-java/spotify-web-api-java.svg?branch=master)](https://travis-ci.org/spotify-web-api-java/spotify-web-api-java) [![codecov](https://codecov.io/gh/spotify-web-api-java/spotify-web-api-java/branch/develop/graph/badge.svg)](https://codecov.io/gh/spotify-web-api-java/spotify-web-api-java) [![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/spotify-web-api-java/spotify-web-api-java.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/spotify-web-api-java/spotify-web-api-java/context:java)
5+
Spotify Web API Java [![build status](https://github.com/spotify-web-api-java/spotify-web-api-java/workflows/maven/badge.svg)](https://github.com/spotify-web-api-java/spotify-web-api-java/actions?query=workflow%3A%22maven%22 "build status") [![codecov](https://codecov.io/gh/spotify-web-api-java/spotify-web-api-java/branch/develop/graph/badge.svg)](https://codecov.io/gh/spotify-web-api-java/spotify-web-api-java) [![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/spotify-web-api-java/spotify-web-api-java.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/spotify-web-api-java/spotify-web-api-java/context:java)
66
====================
77

88
This is a Java wrapper/client for the [Spotify Web API](https://developer.spotify.com/web-api/).

travis/README.md renamed to ci/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
```shell
2-
travis login --pro --github-token xxxxxxxxxx
32
gpg --export --armor your@email.com > codesigning.asc
43
gpg --export-secret-keys --armor your@email.com >> codesigning.asc
4+
travis login --pro --github-token xxxxxxxxxx
55
travis encrypt-file codesigning.asc
66
# travis encrypt "GPG_PASSPHRASE=xxxx\\$xxxx"
77
shred --remove codesigning.asc

‎ci/before-deploy.sh‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
openssl aes-256-cbc -K $encrypted_81c98acad902_key -iv $encrypted_81c98acad902_iv -in ci/codesigning.asc.enc -out ci/codesigning.asc -d
3+
gpg --batch --fast-import ci/codesigning.asc

‎travis/before-deploy.sh‎

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

0 commit comments

Comments
 (0)