Skip to content

Commit a95cd26

Browse files
authored
Merge branch 'main' into feature/wal-1186
2 parents d0d2e1f + 84cda6f commit a95cd26

89 files changed

Lines changed: 21197 additions & 652 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/branch-deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
id: set_version
1616
run: echo "release_version=${GITHUB_REF_SLUG}" >> $GITHUB_OUTPUT
1717
docker-matrix:
18-
uses: walt-id/waltid-identity/.github/workflows/load-json.yml@main
18+
uses: walt-id/waltid-identity/.github/workflows/load-json.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
1919
with:
2020
jsonpath: ".github/workflows/data/docker-matrix.json"
2121
docker:
22-
uses: walt-id/waltid-identity/.github/workflows/docker.yml@main
22+
uses: walt-id/waltid-identity/.github/workflows/docker.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
2323
secrets: inherit
2424
needs: [ version, docker-matrix ]
2525
with:
@@ -28,11 +28,11 @@ jobs:
2828
tags: '["dev", "latest"]'
2929
publish: true
3030
api-docker-matrix:
31-
uses: walt-id/waltid-identity/.github/workflows/load-json.yml@main
31+
uses: walt-id/waltid-identity/.github/workflows/load-json.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
3232
with:
3333
jsonpath: ".github/workflows/data/api-docker-matrix.json"
3434
api-docker:
35-
uses: walt-id/waltid-identity/.github/workflows/api-docker.yml@main
35+
uses: walt-id/waltid-identity/.github/workflows/api-docker.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
3636
secrets: inherit
3737
needs: [ version, api-docker-matrix ]
3838
with:
@@ -41,7 +41,7 @@ jobs:
4141
tags: '["dev", "latest"]'
4242
publish: true
4343
deploy:
44-
uses: walt-id/waltid-identity/.github/workflows/helm-deployment.yml@main
44+
uses: walt-id/waltid-identity/.github/workflows/helm-deployment.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
4545
secrets: inherit
4646
needs: [ version, docker, api-docker ]
4747
with:

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
pr-labels: ${{ toJson(github.event.pull_request.labels.*.name) }}
1919
pr-draft: ${{ github.event.pull_request.draft || false }}
2020
version:
21-
uses: walt-id/waltid-identity/.github/workflows/version.yml@main
21+
uses: walt-id/waltid-identity/.github/workflows/version.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
2222
gradle-build:
23-
uses: walt-id/waltid-identity/.github/workflows/gradle.yml@main
23+
uses: walt-id/waltid-identity/.github/workflows/gradle.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
2424
secrets: inherit
2525
needs:
2626
- android-eligibility
@@ -30,23 +30,23 @@ jobs:
3030
enable-android-build: ${{ needs.android-eligibility.outputs.should-run == 'true' }}
3131
report-check-name: 'gradle-build / gradle (ubuntu-22.04)'
3232
docker-matrix:
33-
uses: walt-id/waltid-identity/.github/workflows/load-json.yml@main
33+
uses: walt-id/waltid-identity/.github/workflows/load-json.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
3434
with:
3535
jsonpath: ".github/workflows/data/docker-matrix.json"
3636
docker:
37-
uses: walt-id/waltid-identity/.github/workflows/docker.yml@main
37+
uses: walt-id/waltid-identity/.github/workflows/docker.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
3838
secrets: inherit
3939
needs: [ version, docker-matrix ]
4040
with:
4141
images: ${{ needs.docker-matrix.outputs.json }}
4242
version: ${{ needs.version.outputs.release_version }}
4343
artifact: true
4444
api-docker-matrix:
45-
uses: walt-id/waltid-identity/.github/workflows/load-json.yml@main
45+
uses: walt-id/waltid-identity/.github/workflows/load-json.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
4646
with:
4747
jsonpath: ".github/workflows/data/api-docker-matrix.json"
4848
api-docker:
49-
uses: walt-id/waltid-identity/.github/workflows/api-docker.yml@main
49+
uses: walt-id/waltid-identity/.github/workflows/api-docker.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
5050
secrets: inherit
5151
needs: [ version, api-docker-matrix ]
5252
with:
@@ -56,7 +56,7 @@ jobs:
5656
ebsi-ct-v3:
5757
# disabled job because of ebsi certificate issues (expired certificate)
5858
if: false
59-
uses: walt-id/waltid-identity/.github/workflows/ebsictv3.yml@main
59+
uses: walt-id/waltid-identity/.github/workflows/ebsictv3.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
6060
needs: [ version, docker, api-docker ]
6161
secrets: inherit
6262
with:

.github/workflows/changelog.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
name: Create release with APK asset (reusable workflow)
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
version:
7+
description: "release version (used to name the APK asset)"
8+
required: true
9+
type: string
10+
tag:
11+
description: "release tag to create and attach the APK to"
12+
required: true
13+
type: string
14+
make_latest:
15+
description: "Whether to mark this release as latest"
16+
required: false
17+
type: boolean
18+
default: true
19+
20+
permissions:
21+
contents: write
22+
23+
jobs:
24+
release:
25+
name: Create release
26+
runs-on: ubuntu-22.04
27+
steps:
28+
- name: Checkout all repos with ref fallback
29+
uses: walt-id/waltid-identity/.github/actions/checkout-repos@864f84343fdeea17f6f63434bc8036c39f178dc7
30+
with:
31+
token: ${{ secrets.GH_ACCESS_TOKEN }}
32+
33+
- name: Detect compose app module
34+
id: detect
35+
run: |
36+
set -euo pipefail
37+
module_dir="waltid-identity/waltid-applications/waltid-wallet-demo-compose/androidApp"
38+
if [ -d "$module_dir" ]; then
39+
echo "Compose app module found, APK will be built."
40+
echo "exists=true" >> "$GITHUB_OUTPUT"
41+
else
42+
echo "::notice::Compose app module not present in this version; skipping APK build."
43+
echo "exists=false" >> "$GITHUB_OUTPUT"
44+
fi
45+
46+
- name: Configure gradle
47+
if: ${{ steps.detect.outputs.exists == 'true' }}
48+
uses: walt-id/waltid-identity/.github/actions/gradle-setup-action@864f84343fdeea17f6f63434bc8036c39f178dc7
49+
50+
- name: Enable Android build in identity repo
51+
if: ${{ steps.detect.outputs.exists == 'true' }}
52+
uses: walt-id/waltid-identity/.github/actions/set-properties@00d4e55e9865cf17c6703d926dce4a4f6e1d404a
53+
with:
54+
file: 'waltid-identity/gradle.properties'
55+
properties: 'enableAndroidBuild=true'
56+
57+
- name: Enable Android build in unified-build root
58+
if: ${{ steps.detect.outputs.exists == 'true' }}
59+
uses: walt-id/waltid-identity/.github/actions/set-properties@00d4e55e9865cf17c6703d926dce4a4f6e1d404a
60+
with:
61+
file: 'gradle.properties'
62+
properties: 'enableAndroidBuild=true'
63+
64+
- name: Build debug APK
65+
if: ${{ steps.detect.outputs.exists == 'true' }}
66+
run: ./gradlew :waltid-applications:waltid-wallet-demo-compose:androidApp:assembleDebug -PappVersionName=${{ inputs.version }} --no-daemon --console=plain --warning-mode=summary
67+
env:
68+
CI: "true"
69+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
70+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
71+
72+
- name: Locate and rename APK
73+
id: apk
74+
if: ${{ steps.detect.outputs.exists == 'true' }}
75+
run: |
76+
set -euo pipefail
77+
apk=$(find waltid-identity/waltid-applications/waltid-wallet-demo-compose/androidApp/build/outputs/apk/debug -name '*.apk' | head -n 1)
78+
if [ -z "$apk" ]; then
79+
echo "::error::No APK found"
80+
exit 1
81+
fi
82+
dest="waltid-wallet-demo-compose-${{ inputs.version }}.apk"
83+
cp "$apk" "$dest"
84+
echo "path=$dest" >> "$GITHUB_OUTPUT"
85+
86+
- name: Create release and attach APK if present
87+
uses: softprops/action-gh-release@v3
88+
env:
89+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
90+
with:
91+
tag_name: ${{ inputs.tag }}
92+
files: ${{ steps.apk.outputs.path }}
93+
fail_on_unmatched_files: false
94+
prerelease: ${{ contains(inputs.tag, 'PRE-RELEASE') }}
95+
make_latest: ${{ inputs.make_latest }}

.github/workflows/fix-release.yml

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ on:
99

1010
jobs:
1111
version:
12-
uses: walt-id/waltid-identity/.github/workflows/version.yml@main
12+
uses: walt-id/waltid-identity/.github/workflows/version.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
1313
with:
1414
preferred: ${{ inputs.release_version }}
1515
gradle:
16-
uses: walt-id/waltid-identity/.github/workflows/gradle.yml@main
16+
uses: walt-id/waltid-identity/.github/workflows/gradle.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
1717
secrets: inherit
1818
needs: version
1919
with:
@@ -22,81 +22,76 @@ jobs:
2222
publish: true
2323
report-check-name: 'gradle / gradle (ubuntu-22.04)'
2424
docker-matrix:
25-
uses: walt-id/waltid-identity/.github/workflows/load-json.yml@main
25+
uses: walt-id/waltid-identity/.github/workflows/load-json.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
2626
with:
2727
jsonpath: ".github/workflows/data/docker-matrix.json"
2828
docker:
29-
uses: walt-id/waltid-identity/.github/workflows/docker.yml@main
29+
uses: walt-id/waltid-identity/.github/workflows/docker.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
3030
secrets: inherit
3131
needs: [ version, docker-matrix ]
3232
with:
3333
images: ${{ needs.docker-matrix.outputs.json }}
3434
version: ${{ needs.version.outputs.release_version }}
3535
publish: true
3636
api-docker-matrix:
37-
uses: walt-id/waltid-identity/.github/workflows/load-json.yml@main
37+
uses: walt-id/waltid-identity/.github/workflows/load-json.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
3838
with:
3939
jsonpath: ".github/workflows/data/api-docker-matrix.json"
4040
api-docker:
41-
uses: walt-id/waltid-identity/.github/workflows/api-docker.yml@main
41+
uses: walt-id/waltid-identity/.github/workflows/api-docker.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
4242
secrets: inherit
4343
needs: [ version, api-docker-matrix ]
4444
with:
4545
images: ${{ needs.api-docker-matrix.outputs.json }}
4646
version: ${{ needs.version.outputs.release_version }}
4747
publish: true
4848
tag:
49-
uses: walt-id/waltid-identity/.github/workflows/tag.yml@main
49+
uses: walt-id/waltid-identity/.github/workflows/tag.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
5050
secrets: inherit
5151
needs: [ version, gradle, docker, api-docker ]
5252
with:
5353
version: ${{ needs.version.outputs.release_version }}
5454
ref: ${{ github.ref_name }}
5555
enterprise-tag:
56-
uses: walt-id/waltid-identity/.github/workflows/tag.yml@main
56+
uses: walt-id/waltid-identity/.github/workflows/tag.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
5757
secrets: inherit
5858
needs: [ version, gradle, docker, api-docker ]
5959
with:
6060
version: ${{ needs.version.outputs.release_version }}
6161
repository: walt-id/waltid-identity-enterprise
6262
ref: ${{ github.ref_name }}
6363
docs-tag:
64-
uses: walt-id/waltid-identity/.github/workflows/tag.yml@main
64+
uses: walt-id/waltid-identity/.github/workflows/tag.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
6565
secrets: inherit
6666
needs: [ version, gradle, docker, api-docker ]
6767
with:
6868
version: ${{ needs.version.outputs.release_version }}
6969
repository: walt-id/waltid-docs
7070
ref: ${{ github.ref_name }}
7171
quickstart-tag:
72-
uses: walt-id/waltid-identity/.github/workflows/tag.yml@main
72+
uses: walt-id/waltid-identity/.github/workflows/tag.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
7373
secrets: inherit
7474
needs: [ version, gradle, docker, api-docker ]
7575
with:
7676
version: ${{ needs.version.outputs.release_version }}
7777
repository: walt-id/waltid-enterprise-quickstart
7878
ref: ${{ github.ref_name }}
7979
unified-build-tag:
80-
uses: walt-id/waltid-identity/.github/workflows/tag.yml@main
80+
uses: walt-id/waltid-identity/.github/workflows/tag.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
8181
secrets: inherit
8282
needs: [ version, gradle, docker, api-docker ]
8383
with:
8484
version: ${{ needs.version.outputs.release_version }}
8585
repository: walt-id/waltid-unified-build
8686
ref: ${{ github.ref_name }}
8787
release:
88-
name: Create Release
89-
runs-on: ubuntu-latest
90-
needs: [ tag ]
91-
steps:
92-
- name: Create Release
93-
uses: softprops/action-gh-release@v3
94-
env:
95-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
96-
with:
97-
tag_name: ${{ needs.tag.outputs.tag }}
98-
prerelease: ${{ contains(needs.tag.outputs.tag, 'PRE-RELEASE') }}
99-
make_latest: false
88+
uses: walt-id/waltid-identity/.github/workflows/create-release.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
89+
secrets: inherit
90+
needs: [ version, tag ]
91+
with:
92+
version: ${{ needs.version.outputs.release_version }}
93+
tag: ${{ needs.tag.outputs.tag }}
94+
make_latest: false
10095
enterprise-release:
10196
name: Create Enterprise Release
10297
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)