Skip to content

Commit

Permalink
disable publishing in sbt-github-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
larsrh committed Apr 6, 2021
1 parent c5ed749 commit 925ece7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 38 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/ci.yml
Expand Up @@ -12,7 +12,6 @@ on:
branches: ['*']
push:
branches: ['*']
tags: [v*]

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -90,39 +89,6 @@ jobs:
if: matrix.platform == 'jvm' && matrix.scala == '2.12.13'
run: sbt ++${{ matrix.scala }} mimaReportBinaryIssues

publish:
name: Publish Artifacts
needs: [build]
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v'))
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.13.5]
java: [adopt@1.11]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Java and Scala
uses: olafurpg/setup-scala@v10
with:
java-version: ${{ matrix.java }}

- name: Cache sbt
uses: actions/cache@v2
with:
path: |
~/.sbt
~/.ivy2/cache
~/.coursier/cache/v1
~/.cache/coursier/v1
~/AppData/Local/Coursier/Cache/v1
~/Library/Caches/Coursier/v1
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}

checks:
name: Format Scala code
strategy:
Expand Down
5 changes: 1 addition & 4 deletions build.sbt
Expand Up @@ -67,10 +67,7 @@ ThisBuild / githubWorkflowAddedJobs ++= Seq(
ThisBuild / githubWorkflowArtifactUpload := false

ThisBuild / githubWorkflowPublish := Seq()

ThisBuild / githubWorkflowTargetTags ++= Seq("v*")
ThisBuild / githubWorkflowPublishTargetBranches :=
Seq(RefPredicate.StartsWith(Ref.Tag("v")))
ThisBuild / githubWorkflowPublishTargetBranches := Seq()

def scalaVersionSpecificFolders(srcName: String, srcBaseDir: java.io.File, scalaVersion: String) = {
def extraDirs(suffix: String) =
Expand Down

0 comments on commit 925ece7

Please sign in to comment.