From dcc53d8e87ad61699c034de7b0214d7e55e47941 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20FALQUIER?= Date: Thu, 29 Jul 2021 14:28:59 +0200 Subject: [PATCH] Add jar publish to Cloudsmith on release --- .github/workflows/releases.yaml | 31 +++++++++++++++++++++++++++++++ .travis.yml | 25 ------------------------- 2 files changed, 31 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/releases.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/releases.yaml b/.github/workflows/releases.yaml new file mode 100644 index 00000000..0bc5174d --- /dev/null +++ b/.github/workflows/releases.yaml @@ -0,0 +1,31 @@ +name: Release ARLAS-proc + +on: + push: + branches: + - develop + tags: + - v* + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Cache SBT # From https://github.com/actions/cache/blob/main/examples.md + uses: actions/cache@v2 + with: + path: | + ~/.ivy2/cache + ~/.sbt + key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} + - name: Set up JDK 8 + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'adopt' + - name: Publish artifact + env: + CLOUDSMITH_USER: ${{ secrets.CLOUDSMITH_USER }} + CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }} + run: sbt clean publish \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d9bb9a4a..00000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: scala - -scala: - - 2.11.8 - -jdk: - - openjdk8 - -cache: - directories: - - $HOME/.ivy2 - - $HOME/.m2 - - $HOME/.sbt - -before_cache: - # Cleanup the cached directories to avoid unnecessary cache updates, cf https://www.scala-sbt.org/1.x/docs/Travis-CI-with-sbt.html - - rm -fv $HOME/.ivy2/.sbt.ivy.lock - - find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete - - find $HOME/.sbt -name "*.lock" -print -delete - -branches: - only: - - master - - develop - - /^integration\/.*$/ \ No newline at end of file