Skip to content

Commit

Permalink
Merge pull request #128 from fasten-project/snapshot-releases
Browse files Browse the repository at this point in the history
Snapshot releases
  • Loading branch information
wzorgdrager authored Nov 23, 2020
2 parents ce91a93 + c118da0 commit 8d328c6
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 5 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/snapshot-releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish package to GitHub Packages
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.11
- name: Set version
run: mvn versions:set -DnewVersion=${{ github.event.release.tag_name }}
- name: Publish package
run: mvn -B deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion analyzer/javacg-opal/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<groupId>eu.fasten.analyzer</groupId>
<artifactId>javacg-opal</artifactId>
<version>0.1.2-SNAPSHOT</version>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>javacg-opal</name>
Expand Down
2 changes: 1 addition & 1 deletion analyzer/metadata-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<groupId>eu.fasten.analyzer</groupId>
<artifactId>metadata-plugin</artifactId>
<version>0.1.2-SNAPSHOT</version>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>metadata-plugin</name>
Expand Down
2 changes: 1 addition & 1 deletion analyzer/pom-analyzer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<groupId>eu.fasten.analyzer</groupId>
<artifactId>pom-analyzer</artifactId>
<version>0.1.2-SNAPSHOT</version>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>pom-analyzer</name>
Expand Down
2 changes: 1 addition & 1 deletion analyzer/repo-cloner-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<groupId>eu.fasten.analyzer</groupId>
<artifactId>repo-cloner-plugin</artifactId>
<version>0.1.2-SNAPSHOT</version>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>repo-cloner-plugin</name>
Expand Down
15 changes: 14 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>


<description>
The FASTEN project makes software ecosystems robust, by making package management
intelligent.
Expand Down Expand Up @@ -119,7 +120,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.5</version>
<version>2.8.1</version>
<configuration>
<generateBackupPoms>false</generateBackupPoms>
</configuration>
Expand Down Expand Up @@ -196,6 +197,11 @@
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
</plugin>
</plugins>
</build>

Expand Down Expand Up @@ -232,4 +238,11 @@
</plugins>
</reporting>

<distributionManagement>
<snapshotRepository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/fasten-project/fasten</url>
</snapshotRepository>
</distributionManagement>
</project>

0 comments on commit 8d328c6

Please sign in to comment.