From 2e65667ec893d37d6f4d3db2e678a9a2d228df88 Mon Sep 17 00:00:00 2001 From: Bastien LEMALE Date: Sat, 5 Jun 2021 16:19:52 +0200 Subject: [PATCH 1/2] [build] Add github action workflow for CI --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e4c0e23 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,13 @@ +name: CI +on: [push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: coursier/cache-action@v6 + - uses: olafurpg/setup-scala@v11 + - run: sbt clean scalafmtSbtCheck scalafmtCheck coverage +test +doc + - run: sbt coverageReport coveralls + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} \ No newline at end of file From ebb9428201725472dedf2ce3e06c5ef5e3c04bf6 Mon Sep 17 00:00:00 2001 From: Bastien LEMALE Date: Sat, 5 Jun 2021 16:46:14 +0200 Subject: [PATCH 2/2] [build] Add github action workflow for Release --- .github/workflows/release.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..76d29bf --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,19 @@ +name: Release +on: + push: + branches: [master] + tags: ["*"] +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.3.4 + with: + fetch-depth: 0 + - uses: olafurpg/setup-scala@v11 + - 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 }}