Skip to content

Publish configuration #2

Publish configuration

Publish configuration #2

Workflow file for this run

name: Publish
on:
workflow_dispatch:
inputs:
version:
required: true
description: "The version to be published"
type: string
push:
tags:
- *

Check failure on line 11 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ubuntu-22.04
timeout-minutes: 15
env:
SBT_OPTS: -Dfile.encoding=UTF-8 -Duser.timezone=UTC
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Cache Coursier
uses: coursier/[email protected]
- name: Setup JDK
uses: coursier/[email protected]
with:
jvm: adoptium:1.17
- name: Import GPG Key
timeout-minutes: 10
env:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
run: |
echo $PGP_SECRET | base64 --decode | gpg --batch --import
- name: Build
timeout-minutes: 10
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
run: |
sbt --client "+test +publishSigned;"