File tree Expand file tree Collapse file tree 2 files changed +70
-0
lines changed
Expand file tree Collapse file tree 2 files changed +70
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3+
4+ # This workflow uses actions that are not certified by GitHub.
5+ # They are provided by a third-party and are governed by
6+ # separate terms of service, privacy policy, and support
7+ # documentation.
8+
9+ name : Build cdoc2-auth with CI
10+
11+ on :
12+ release :
13+ types : [created]
14+
15+ jobs :
16+ publish :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - uses : actions/checkout@v4
20+ - name : Set up JDK 17
21+ uses : actions/setup-java@v4
22+
23+ with :
24+ java-version : ' 17'
25+ distribution : ' temurin'
26+ overwrite-settings : true # generate settings.xml
27+ cache : maven
28+ - name : Publish with Maven
29+ run : |
30+ mvn deploy
31+ env :
32+ GITHUB_TOKEN : ${{ github.token }}
Original file line number Diff line number Diff line change @@ -126,3 +126,41 @@ Other rules to validate auth ticket:
126126[ Verifying SD-JWT (verifying authentication ticket)] ( https://open-eid.github.io/CDOC2/2.0-Draft/03_system_architecture/ch05_ID_authentication_protocol/#verifying-sd-jwt-verifying-authentication-ticket )
127127
128128For additional details see tests in ` src/test/java/ `
129+
130+ ## Get from Github package repo
131+
132+
133+ Configure github package repo access
134+ https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry#authenticating-with-a-personal-access-token
135+
136+ Example ` <profile> ` section of ` settings.xml ` for using ` cdoc2-auth-token ` :
137+ ``` xml
138+ <profile >
139+ <id >github</id >
140+ <repositories >
141+ <repository >
142+ <id >central</id >
143+ <url >https://repo1.maven.org/maven2</url >
144+ </repository >
145+ <repository >
146+ <id >github</id >
147+ <url >https://maven.pkg.github.com/open-eid/cdoc2-auth</url >
148+ </repository >
149+ </repositories >
150+ </profile >
151+ ```
152+
153+ Note: When pulling, the package index is based on the organization level, not the repository level.
154+ https://stackoverflow.com/questions/63041402/github-packages-single-maven-repository-for-github-organization
155+
156+ So defining single Maven package repo from ` open-eid ` is enough for pulling cdoc2-* dependencies.
157+
158+ Use in Maven pom.xml:
159+
160+ ``` xml
161+ <dependency >
162+ <groupId >ee.cyber.cdoc2</groupId >
163+ <artifactId >cdoc2-auth-token</artifactId >
164+ <version >0.3.3-SNAPSHOT</version >
165+ </dependency >
166+ ```
You can’t perform that action at this time.
0 commit comments