Skip to content

Update sbt, sbt-dependency-tree, ... to 1.9.7 #111

Update sbt, sbt-dependency-tree, ... to 1.9.7

Update sbt, sbt-dependency-tree, ... to 1.9.7 #111

Workflow file for this run

name: Build
on:
workflow_dispatch:
inputs: {}
push:
branches: [ "develop" ]
tags: [ "v**" ]
pull_request:
branches: [ "develop" ]
permissions:
contents: read
jobs:
checksecret:
runs-on: ubuntu-latest
outputs:
HAVE_SECRETS: ${{ steps.checksecret_job.outputs.HAVE_SECRETS }}
steps:
- id: checksecret_job
env:
OPENSSL_IV: ${{ secrets.OPENSSL_IV }}
OPENSSL_KEY: ${{ secrets.OPENSSL_KEY }}
run: |
echo "HAVE_SECRETS=${{ env.OPENSSL_IV != '' && env.OPENSSL_KEY != '' }}" >> $GITHUB_OUTPUT
build:
runs-on: ubuntu-latest
needs: [ 'checksecret' ]
steps:
- uses: 7mind/github-env@main
with:
java-version: 17
- name: Build and Test
run: |
bash .build.sh build
test-scripted:
runs-on: ubuntu-latest
needs: [ 'checksecret' ]
steps:
- uses: 7mind/github-env@main
with:
java-version: 17
- name: Build and Test
run: |
bash .build.sh scripted
publish:
runs-on: ubuntu-latest
needs: [ 'build', 'test-scripted', 'checksecret']
if: needs.checksecret.outputs.HAVE_SECRETS == 'true'
steps:
- uses: 7mind/github-env@main
with:
java-version: 17
- name: Publish
env:
OPENSSL_IV: ${{ secrets.OPENSSL_IV }}
OPENSSL_KEY: ${{ secrets.OPENSSL_KEY }}
run: |
bash .build.sh secrets publish
all-good:
runs-on: ubuntu-latest
needs: [ 'build', 'test-scripted', 'publish' ]
steps:
- run: 'echo "No build required"'