Skip to content

Commit

Permalink
Merge branch 'master' into FixGitHubDeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
graefjk authored Jan 3, 2024
2 parents a560824 + e5a7083 commit a748d3d
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 26 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploySettings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">

<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>

<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
</repository>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/OWNER/REPOSITORY</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>

<servers>
<server>
<id>github</id>
<username>${github.user}</username>
<password>${github.token}</password>
</server>
</servers>
</settings>

23 changes: 0 additions & 23 deletions .github/workflows/releaseMavenPackages.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/releaseToGithubPackages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish package to GitHub Packages
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Publish package
run: ./mvnw -s "${{ github.workspace }}/scriptsAndTools/internalOrCiOnly/deploySettings.xml" deploy -Dgithub.user=$GITHUB_USER -Dgithub.token=$GITHUB_TOKEN
env:
GITHUB_USER: ${{ secrets.MAVEN_REPO_USER }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>de.uni-stuttgart.informatik.fius</groupId>
<artifactId>ICGE</artifactId>
<version>2.3.8-Snapshot</version>
<version>2.3.9-Snapshot</version>
</parent>
<artifactId>${artifactId}</artifactId>
<name>${name}</name>
Expand Down
2 changes: 1 addition & 1 deletion examples/mario/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<name>ICGE Example: Mario Simulator</name>
<properties>
<java.version>11</java.version>
<icge.version>2.3.8-Snapshot</icge.version>
<icge.version>2.3.9-Snapshot</icge.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
<distributionManagement>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/graefjk/ICGE2</url>
<url>https://maven.pkg.github.com/FIUS/ICGE2</url>
</repository>
</distributionManagement>
<modules>
Expand Down
37 changes: 37 additions & 0 deletions scriptsAndTools/internalOrCiOnly/deploySettings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">

<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>

<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
</repository>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/OWNER/REPOSITORY</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>

<servers>
<server>
<id>github</id>
<username>${github.user}</username>
<password>${github.token}</password>
</server>
</servers>
</settings>

0 comments on commit a748d3d

Please sign in to comment.