Skip to content

Commit c744b64

Browse files
authored
Merge pull request #303 from BitGo/CSHLD-1085-enable-github-packages-release
feat(wasm-privacy-coin): publish JAR to GitHub Packages
2 parents 28ade75 + cff2cb2 commit c744b64

7 files changed

Lines changed: 610 additions & 120 deletions

File tree

.github/maven-settings.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<settings>
2+
<servers>
3+
<server>
4+
<id>github</id>
5+
<username>${env.GITHUB_ACTOR}</username>
6+
<password>${env.GITHUB_TOKEN}</password>
7+
</server>
8+
</servers>
9+
</settings>

.github/workflows/build-and-test.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,14 @@ jobs:
340340
packages/wasm-ton/dist/
341341
retention-days: 1
342342

343+
- name: Upload wasm-privacy-coin build artifacts
344+
if: inputs.upload-artifacts
345+
uses: actions/upload-artifact@v4
346+
with:
347+
name: wasm-privacy-coin-build
348+
path: packages/wasm-privacy-coin/dist/
349+
retention-days: 1
350+
343351
# This job provides a stable "test / Test" status check for branch protection.
344352
# It runs after all other jobs complete successfully.
345353
gate:

.github/workflows/publish.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
permissions:
2424
id-token: write
2525
contents: write
26+
packages: write
2627

2728
steps:
2829
- name: Checkout repository
@@ -60,6 +61,12 @@ jobs:
6061
name: wasm-ton-build
6162
path: packages/wasm-ton/
6263

64+
- name: Download wasm-privacy-coin build artifacts
65+
uses: actions/download-artifact@v4
66+
with:
67+
name: wasm-privacy-coin-build
68+
path: packages/wasm-privacy-coin/dist/
69+
6370
- name: Setup Node
6471
uses: actions/setup-node@v4
6572
with:
@@ -75,8 +82,18 @@ jobs:
7582
git config user.name "github-actions[bot]"
7683
git config user.email "github-actions[bot]@users.noreply.github.com"
7784
85+
- name: Setup JDK 17 (for wasm-privacy-coin Maven deploy)
86+
uses: actions/setup-java@v4
87+
with:
88+
distribution: corretto
89+
java-version: "17"
90+
7891
- name: Install dependencies
7992
run: npm ci --workspaces --include-workspace-root
8093

8194
- name: Release (multi-semantic-release)
8295
run: npx multi-semantic-release --ignore-private-packages
96+
env:
97+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
98+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99+
GITHUB_ACTOR: ${{ github.actor }}

0 commit comments

Comments
 (0)