Skip to content

Commit 24ba1ac

Browse files
authored
Add publishing workflow (#2)
Adding the publishing workflow Motivation: https://vanta-team-j1bu05uk.atlassian.net/browse/PEX-4120
1 parent 9cabfaa commit 24ba1ac

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

.github/workflows/sdk_generation.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,8 @@ jobs:
2626
set_version: ${{ github.event.inputs.set_version }}
2727
secrets:
2828
github_access_token: ${{ secrets.GITHUB_TOKEN }}
29+
java_gpg_passphrase: ${{ secrets.JAVA_GPG_PASSPHRASE }}
30+
java_gpg_secret_key: ${{ secrets.JAVA_GPG_SECRET_KEY }}
31+
ossrh_password: ${{ secrets.OSSRH_PASSWORD }}
32+
ossrh_username: ${{ secrets.OSSRH_USERNAME }}
2933
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.github/workflows/sdk_publish.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish
2+
permissions:
3+
checks: write
4+
contents: write
5+
pull-requests: write
6+
statuses: write
7+
id-token: write
8+
"on":
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- .speakeasy/gen.lock
14+
workflow_dispatch: {}
15+
jobs:
16+
publish:
17+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
18+
with:
19+
target: vanta
20+
secrets:
21+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
22+
java_gpg_passphrase: ${{ secrets.JAVA_GPG_PASSPHRASE }}
23+
java_gpg_secret_key: ${{ secrets.JAVA_GPG_SECRET_KEY }}
24+
ossrh_password: ${{ secrets.OSSRH_PASSWORD }}
25+
ossrh_username: ${{ secrets.OSSRH_USERNAME }}
26+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.speakeasy/workflow.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ targets:
1212
vanta:
1313
target: java
1414
source: Conduct an audit
15+
publish:
16+
java:
17+
ossrhUsername: $ossrh_username
18+
ossrhPassword: $ossrh_password
19+
gpgSecretKey: $java_gpg_secret_key
20+
gpgPassPhrase: $java_gpg_passphrase
1521
codeSamples:
1622
registry:
1723
location: registry.speakeasyapi.dev/vanta/vanta/conduct-an-audit-java-code-samples

0 commit comments

Comments
 (0)