Add some docs #1
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 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: | | ||
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | 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: -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 | ||