Skip to content

Secrets updated by https://github.com/7mind/ghpub #187

Secrets updated by https://github.com/7mind/ghpub

Secrets updated by https://github.com/7mind/ghpub #187

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:
if: always()
runs-on: ubuntu-latest
needs: [ 'build', 'test-scripted', 'publish' ]
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}