Merge pull request #50 from grimsi/gh34_fixCI

Fix CI Release pipeline
This commit is contained in:
Simon
2022-10-13 18:51:13 +02:00
committed by GitHub
2 changed files with 8 additions and 5 deletions
+2 -4
View File
@@ -33,16 +33,13 @@ jobs:
distribution: 'temurin' distribution: 'temurin'
cache: 'maven' cache: 'maven'
- name: Maven build
run: mvn --batch-mode --update-snapshots package -Dmaven.test.skip=true
- name: Configure Git User - name: Configure Git User
run: | run: |
git config user.email "actions@github.com" git config user.email "actions@github.com"
git config user.name "GitHub Actions" git config user.name "GitHub Actions"
- name: Maven Release - name: Maven Release
run: mvn release:prepare release:perform -B -s .maven_settings.xml -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -DdevelopmentVersion=${{ github.event.inputs.developmentVersion }} run: mvn release:prepare release:perform -B -s .maven_settings.xml -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -DdevelopmentVersion=${{ github.event.inputs.developmentVersion }} -Darguments="-Dmaven.deploy.skip=true -Dmaven.test.skip=true"
env: env:
GITHUB_ACTOR: ${{ github.actor }} GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ github.token }} GITHUB_TOKEN: ${{ github.token }}
@@ -59,6 +56,7 @@ jobs:
with: with:
repo_token: ${{ github.token }} repo_token: ${{ github.token }}
prerelease: false prerelease: false
automatic_release_tag: v${{ github.event.inputs.releaseVersion }}
files: | files: |
LICENSE.md LICENSE.md
backend/target/gameyfin-*.jar backend/target/gameyfin-*.jar
+6 -1
View File
@@ -36,7 +36,12 @@
<artifactId>maven-release-plugin</artifactId> <artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version> <version>2.5.3</version>
<configuration> <configuration>
<scmCommentPrefix>[ci skip]</scmCommentPrefix> <scmCommentPrefix>[ci skip] </scmCommentPrefix>
<tagNameFormat>v@{project.version}</tagNameFormat>
<checkModificationExcludes>
<checkModificationExclude>frontend/package.json</checkModificationExclude>
<checkModificationExclude>frontend/package-lock.json</checkModificationExclude>
</checkModificationExcludes>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>