Skip to content

Commit

Permalink
Switch to gitbhub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Cabala committed Apr 29, 2024
1 parent 2c48495 commit aca72c7
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 29 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: release
on:
push:
tags: ["*"]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Download repo
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- name: Publish
env:
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}
run: ./gradlew clean build publishPlugins -Pgradle.publish.key=$GPP_KEY -Pgradle.publish.secret=$GPP_SECRET
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: master
on:
push:
branches:
- master
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Download repo
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- name: Run tests
run: ./gradlew test
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
plugins {
id 'groovy'
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version '0.11.0'
id 'com.palantir.git-version' version '0.11.0'
id 'com.gradle.plugin-publish' version '1.2.1'
id 'com.palantir.git-version' version '3.0.0'
}

repositories {
Expand Down Expand Up @@ -41,5 +41,5 @@ pluginBundle {

def resolveVersion() {
def details = versionDetails()
"${details.lastTag.replaceAll('^v', '')}.${details.commitDistance}" as String
"${details.lastTag.replaceAll('^v', '')}" as String
}

0 comments on commit aca72c7

Please sign in to comment.