This repository was archived by the owner on Feb 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflow will build a package using Maven and then publish it to GitHub packages when a PR is accepted/new content is pushed
2+ # For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
3+
4+ name : Maven Publish Snapshot
5+
6+ on :
7+ push :
8+ branches :
9+ - development
10+
11+ jobs :
12+ build :
13+
14+ runs-on : ubuntu-latest
15+ permissions :
16+ contents : read
17+ packages : write
18+
19+ steps :
20+ - uses : actions/checkout@v2
21+ - name : Set up JDK 11
22+ uses : actions/setup-java@v2
23+ with :
24+ java-version : ' 11'
25+ distribution : ' adopt'
26+ server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
27+ settings-path : ${{ github.workspace }} # location for the settings.xml file
28+
29+ - name : Build with Maven
30+ run : mvn -B package --file pom.xml
31+
32+ - name : Delete old Package
33+ uses : actions/delete-package-versions@v1
34+ with :
35+ package-name : ' io.admin-shell.aas.model'
36+
37+ - name : Publish to GitHub Packages Apache Maven
38+ run : mvn deploy -s $GITHUB_WORKSPACE/settings.xml
39+ env :
40+ GITHUB_TOKEN : ${{ github.token }}
Original file line number Diff line number Diff line change 2727 <modelVersion >4.0.0</modelVersion >
2828 <groupId >io.admin-shell.aas</groupId >
2929 <artifactId >dataformat-parent</artifactId >
30- <version >${revision} </version >
30+ <version >1.3.0-SNAPSHOT </version >
3131 <packaging >pom</packaging >
3232 <modules >
3333 <module >dataformat-aasx</module >
4141 </modules >
4242 <properties >
4343 <revision >1.1.0</revision >
44- <model .version>${revision} </model .version>
44+ <model .version>1.3.0-SNAPSHOT </model .version>
4545
4646 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
4747 <project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
247247 </dependencies >
248248 </dependencyManagement >
249249
250+ <distributionManagement >
251+ <repository >
252+ <id >github</id >
253+ <name >GitHub Apache Maven Packages</name >
254+ <url >https://maven.pkg.github.com/frankschnicke/java-serializer</url >
255+ </repository >
256+ </distributionManagement >
257+
250258 <licenses >
251259 <license >
252260 <name >Apache License, Version 2.0</name >
You can’t perform that action at this time.
0 commit comments