Add POC Smithy backed Flipt module (#6) #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | ||
concurrency: release | ||
on: | ||
pull_request: | ||
branches: ['**'] | ||
push: | ||
branches: [master] | ||
tags: [v*] | ||
jobs: | ||
build: | ||
name: Build and Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
cache: sbt | ||
- name: Lint | ||
run: sbt scalafmtCheckAll scalafmtSbtCheck 'scalafix --check' | ||
- name: Test | ||
run: sbt ++test | ||
- name: Compile docs | ||
run: sbt 'docs/mdoc' | ||
release: | ||
needs: [build] | ||
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') | ||
Check failure on line 38 in .github/workflows/ci.yaml GitHub Actions / releaseInvalid workflow file
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 8 | ||
cache: sbt | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.sbt | ||
~/.ivy2/cache | ||
~/.coursier | ||
key: ${{ runner.os }}-sbt-${{ hashfiles('**/build.sbt', '**/project/*.scala', '**/project/*.sbt') }} | ||
- name: Release | ||
run: sbt ci-release | ||
env: | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
PGP_SECRET: ${{ secrets.PGP_SECRET }} | ||
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} |