Skip to content

Commit

Permalink
fixup! build: Add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tmccombs committed May 18, 2023
1 parent d7d88fd commit 2bd27c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
~/.ivy2
~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}
- name: Start mysql
run: sudo /etc/init.d/mysql start
- name: Set SBT_OPTS
run: bash generate_sbt_opts.sh
- name: Build
Expand All @@ -35,7 +37,7 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: jars
path: '*/target/*.jar'
path: '*/target/**/*.jar'
retention-days: 1
publish:
if: ${{ github.event_name != 'pull_request' }} && (github.repository == 'lucidsoftware/java-thread-context') }}
Expand All @@ -48,7 +50,7 @@ jobs:
path: |
~/.ivy2
~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}
- name: Set SBT_OPTS
run: bash generate_sbt_opts.sh
- name: Publish to Sonatype
Expand All @@ -73,5 +75,5 @@ jobs:
run: |
set -x
tag="${GITHUB_REF#refs/tags/}"
targets=($(printf -- "-a %s " */target/*.jar))
targets=($(printf -- "-a %s " */target/**/*.jar))
hub release create "${targets[@]}" -m "Release $tag" $tag
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ inScope(Global)(Seq(
),
scmInfo := Some(ScmInfo(url("https://github.com/lucidsoftware/relate"), "scm:git:[email protected]:lucidsoftware/relate.git")),
Benchmark / test / tags += benchmarkTag -> 1,
Benchmark / test / tags += benchmarkTag -> 1,
Benchmark / test / tags += benchmarkTag -> 1,
Benchmark / testOnly / tags += benchmarkTag -> 1,
Benchmark / testQuick / tags += benchmarkTag -> 1,
version := sys.props.getOrElse("build.version", "0-SNAPSHOT")
))

Expand Down

0 comments on commit 2bd27c3

Please sign in to comment.