From c9eaa628ef6448bb6c0aebfbe7cc81b45063fe4c Mon Sep 17 00:00:00 2001 From: Mikhail Chugunkov Date: Sat, 1 Aug 2020 18:41:01 +0300 Subject: [PATCH] Release with GitHub Actions (#117) * Release with GitHub Actions * Delete .travis.yml --- .github/workflows/release.yml | 20 ++++++++++++++++++++ .travis.yml | 32 -------------------------------- 2 files changed, 20 insertions(+), 32 deletions(-) create mode 100644 .github/workflows/release.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..595acdd --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +name: Release +on: + push: + branches: [master] + tags: ["*"] +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: olafurpg/setup-scala@v2 + - uses: olafurpg/setup-gpg@v2 + - run: git fetch --tags || true + - name: Publish ${{ github.ref }} + run: sbt ci-release + env: + PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} + PGP_SECRET: ${{ secrets.PGP_SECRET }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f0dd65c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,32 +0,0 @@ -language: scala -dist: trusty -jdk: - - oraclejdk8 - -stages: - - name: release - if: (tag IS present) - -jobs: - include: - - stage: release - script: sbt ci-release - -cache: - directories: - - $HOME/.sbt/1.0/dependency - - $HOME/.sbt/boot/scala* - - $HOME/.sbt/launchers - - $HOME/.ivy2/cache - - $HOME/.coursier - -before_cache: - - du -h -d 1 $HOME/.ivy2/cache - - du -h -d 2 $HOME/.sbt/ - - find $HOME/.sbt -name "*.lock" -type f -delete - - find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete - - rm -rf $HOME/.ivy2/local - -before_install: - - git fetch --tags -