From 7610895096c281cd774483f0f8a2b5c68917c4ae Mon Sep 17 00:00:00 2001 From: Artem Eroshenko Date: Thu, 12 Sep 2019 22:45:44 +0300 Subject: [PATCH] first draft of actions (via #28) --- .github/release-drafter.yml | 18 +++++++++++++++ .github/workflows/build.yml | 15 +++++++++++++ .github/workflows/release-draft.yml | 15 +++++++++++++ .travis.yml | 34 ----------------------------- 4 files changed, 48 insertions(+), 34 deletions(-) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/release-draft.yml delete mode 100644 .travis.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..9710541 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,18 @@ +name-template: '$NEXT_MINOR_VERSION' +tag-template: '$NEXT_MINOR_VERSION' +categories: + - title: '🚀 New Features' + label: 'type:new feature' + - title: '🔬 Improvements' + label: 'type:improvement' + - title: '🐞 Bug Fixes' + label: 'type:bug' + +change-template: '* $TITLE (via #$NUMBER) - @$AUTHOR' +template: | + $CHANGES + + ## 👀 Links + + [Commits since $PREVIOUS_TAG](https://github.com/allure-framework/allure-android/compare/$PREVIOUS_TAG...master) + diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..3d68358 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,15 @@ +name: Build + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Gradle Build + run: ./gradlew build diff --git a/.github/workflows/release-draft.yml b/.github/workflows/release-draft.yml new file mode 100644 index 0000000..3b9f766 --- /dev/null +++ b/.github/workflows/release-draft.yml @@ -0,0 +1,15 @@ +name: Release Draft + +on: + push: + branches: + - master + +jobs: + update_draft_release: + runs-on: ubuntu-latest + steps: + - uses: toolmantim/release-drafter@v5.2.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 790f406..0000000 --- a/.travis.yml +++ /dev/null @@ -1,34 +0,0 @@ -language: android -sudo: false -jdk: oraclejdk8 - -cache: - directories: - - ${TRAVIS_BUILD_DIR}/gradle/caches/ - - ${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/ - -env: - global: - - ANDROID_API_LEVEL=28 - - ANDROID_BUILD_TOOLS_VERSION=28.0.2 - -android: - components: - # Update Android SDK Tools - # https://docs.travis-ci.com/user/languages/android/#Installing-a-newer-SDK-Platform-Tools-revision - - tools # to get the new `repository-11.xml` - - platform-tools - - build-tools-$ANDROID_BUILD_TOOLS_VERSION - - android-$ANDROID_API_LEVEL - - tools # to install Android SDK tools 25.1.x - - # Support library - - extra-android-support - # Latest artifacts in local repository - - extra-android-m2repository - - extra-google-m2repository - -before_install: - - chmod +x gradlew - -script: ./gradlew build --stacktrace \ No newline at end of file