Skip to content

Commit

Permalink
Add release action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MrStahlfelge committed Dec 19, 2020
1 parent cfa8cae commit b076150
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 4 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Compile and publish release

on:
release:
types: [published]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Setup Android build environment
uses: android-actions/setup-android@v2.0.2
- name: Build Android
run: ./gradlew clean :test:android:buildDebug
- name: Build Desktop
run: ./gradlew :test:desktop:build :test:lwjgl3:build
- name: Build iOS
run: ./gradlew :test:ios:build
- name: Build GWT
run: ./gradlew :test:html:build
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Release build deploy
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run:
./gradlew clean uploadArchives -PRELEASE=true -Psigning.gnupg.keyId=${{ secrets.GPG_KEYID }} -Psigning.gnupg.passphrase=${{ secrets.GPG_PASSPHRASE }} -Psigning.gnupg.keyName=${{ secrets.GPG_KEYID }}
3 changes: 0 additions & 3 deletions .github/workflows/publish_snapshot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Compile and publish snapshot

on:
Expand Down
1 change: 0 additions & 1 deletion gdx-controllers-desktop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ eclipse {
dependencies {
api project(":gdx-controllers-core")
implementation "com.badlogicgames.gdx:gdx:$gdxVersion"
// FIXME change it after first official libgdx-Jamepad release
api "com.badlogicgames.jamepad:jamepad:2.0.12.1"
}

Expand Down
5 changes: 5 additions & 0 deletions publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ afterEvaluate { project ->
}

developers {
developer {
id = "Tomski"
name = "Tom Wojciechowski"
email = "tomwojciechowski@asidik.com"
}
developer {
id 'MrStahlfelge'
name 'Benjamin Schulte'
Expand Down

0 comments on commit b076150

Please sign in to comment.