Skip to content

Commit 925ece7

Browse files
committed
disable publishing in sbt-github-actions
1 parent c5ed749 commit 925ece7

File tree

2 files changed

+1
-38
lines changed

2 files changed

+1
-38
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ on:
1212
branches: ['*']
1313
push:
1414
branches: ['*']
15-
tags: [v*]
1615

1716
env:
1817
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -90,39 +89,6 @@ jobs:
9089
if: matrix.platform == 'jvm' && matrix.scala == '2.12.13'
9190
run: sbt ++${{ matrix.scala }} mimaReportBinaryIssues
9291

93-
publish:
94-
name: Publish Artifacts
95-
needs: [build]
96-
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v'))
97-
strategy:
98-
matrix:
99-
os: [ubuntu-latest]
100-
scala: [2.13.5]
101-
102-
runs-on: ${{ matrix.os }}
103-
steps:
104-
- name: Checkout current branch (full)
105-
uses: actions/checkout@v2
106-
with:
107-
fetch-depth: 0
108-
109-
- name: Setup Java and Scala
110-
uses: olafurpg/setup-scala@v10
111-
with:
112-
java-version: ${{ matrix.java }}
113-
114-
- name: Cache sbt
115-
uses: actions/cache@v2
116-
with:
117-
path: |
118-
~/.sbt
119-
~/.ivy2/cache
120-
~/.coursier/cache/v1
121-
~/.cache/coursier/v1
122-
~/AppData/Local/Coursier/Cache/v1
123-
~/Library/Caches/Coursier/v1
124-
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
125-
12692
checks:
12793
name: Format Scala code
12894
strategy:

build.sbt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,7 @@ ThisBuild / githubWorkflowAddedJobs ++= Seq(
6767
ThisBuild / githubWorkflowArtifactUpload := false
6868

6969
ThisBuild / githubWorkflowPublish := Seq()
70-
71-
ThisBuild / githubWorkflowTargetTags ++= Seq("v*")
72-
ThisBuild / githubWorkflowPublishTargetBranches :=
73-
Seq(RefPredicate.StartsWith(Ref.Tag("v")))
70+
ThisBuild / githubWorkflowPublishTargetBranches := Seq()
7471

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

0 commit comments

Comments
 (0)