Skip to content

Release build

Release build #4

Workflow file for this run

name: Release build
on:
release:
types: [created]
workflow_dispatch:
jobs:
publish-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 17
- id: install-secret-key
name: Install gpg secret key
run: |
echo "${{ secrets.OSSRH_GPG_SECRET_KEY }}" | base64 -d | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Install libcurl
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev
- name: Publish package
run: gradle publish codegen:fatJar -Psigning.gnupg.passphrase='${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}'
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./build/classes/kotlin/linuxX64/main/cinterop/sdbus-kotlin-cinterop-sdbus-x86_64-256.2-1.klib
./build/classes/kotlin/linuxX64/main/klib/sdbus-kotlin.klib
./codegen/build/libs/codegen-all-0.1.0.jar