-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.23 KB
/
publish.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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