-
Notifications
You must be signed in to change notification settings - Fork 30
63 lines (54 loc) · 1.91 KB
/
Java.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Java JDBC
on:
push:
pull_request:
workflow_call:
workflow_dispatch:
repository_dispatch:
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
OVERRIDE_GIT_DESCRIBE: ${{ inputs.override_git_describe }}
jobs:
java-combine:
if: ${{ inputs.override_git_describe == '' }}
name: Java Combine
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ inputs.git_ref }}
- shell: bash
run: mkdir jdbc-artifacts
- name: Get dummy JAR
shell: bash
run: |
wget --quiet https://artifacts.duckdb.org/duckdb-java/main/java-jars.zip
unzip -d jdbc-artifacts java-jars.zip
ls -R jdbc-artifacts
- name: Combine JARs
shell: bash
run: |
mkdir -p ~/.gnupg
touch ~/.gnupg/passphrase
echo -e "passphrase-file ~/.gnupg/passphrase\npinentry-mode loopback\nno-tty\nbatch\n" > ~/.gnupg/gpg.conf
#echo -e "allow-loopback-pinentry\n" > ~/.gnupg/gpg-agent.conf
export XML='
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>ossrh</id>
<username>hfmuehleisen</username> <!-- Sonatype OSSRH JIRA user/pw -->
<password>PASSWORD</password>
</server>
</servers>
</settings> '
mkdir ~/.m2
echo $XML > ~/.m2/settings.xml
echo "${{ secrets.MAVEN_PGP_PK }}" | base64 -d > maven_pgp_key
gpg --batch --import maven_pgp_key
python scripts/jdbc_maven_deploy.py ${{ github.ref_name }} jdbc-artifacts .
ls -lahR jdbc-artifacts