Skip to content

Commit

Permalink
I guess sbt doesn't ship with setup-java
Browse files Browse the repository at this point in the history
  • Loading branch information
alterationx10 committed Feb 8, 2025
1 parent 8f24da4 commit 818c26d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/pr-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: docker/setup-buildx-action@v3
- uses: coursier/cache-action@v6.4

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: sbt

- name: Setup sbt launcher
uses: sbt/setup-sbt@v1

- run: sbt test
11 changes: 10 additions & 1 deletion .github/workflows/publish-central.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,38 @@ jobs:
run: |
TAG="${{ github.event.release.tag_name }}"
echo "BRANCH_VERSION=${TAG#v}" >> $GITHUB_ENV
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: coursier/cache-action@v6.4

- name: Import GPG key
env:
GPG_KEY: ${{ secrets.GPG_KEY }}
run: |
echo -n "$GPG_KEY" | gpg --import
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: sbt

- name: Setup sbt launcher
uses: sbt/setup-sbt@v1

- name: Build + Sign
run: sbt publishSigned
env:
BRANCH_VERSION: ${{ env.BRANCH_VERSION }}

- name: ZIP
run: |
cd bundle
zip -r ../branch-${BRANCH_VERSION}.zip .
env:
BRANCH_VERSION: ${{ env.BRANCH_VERSION }}

- name: Upload
run: |
curl \
Expand Down

0 comments on commit 818c26d

Please sign in to comment.