Skip to content

Commit

Permalink
test: build as jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
grigoriev committed Aug 2, 2024
1 parent ecd8d00 commit a1ec8a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
gpg-private-key: ${{ secrets.COM_SONATYPE_CENTRAL_POLARION_OPENSOURCE_GPG_PRIVATE_KEY }}
- name: Prepare Cache
id: prepare-cache
uses: actions/cache@v4
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: |
/home/runner/.m2
Expand Down Expand Up @@ -108,14 +108,14 @@ jobs:
gpg-private-key: ${{ secrets.COM_SONATYPE_CENTRAL_POLARION_OPENSOURCE_GPG_PRIVATE_KEY }}
- name: Restore Cache
id: restore-cache
uses: actions/cache@v4
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: |
/home/runner/.m2
/home/runner/work
key: ${{ needs.build.outputs.cache_key }}
- name: Publish to Maven Central
run: mvn --batch-mode -DskipTests=true -Dmaven.javadoc.skip=true package -P gpg-sign -P nexus-staging
run: mvn --batch-mode -DskipTests=true -Dmaven.javadoc.skip=true deploy -P gpg-sign -P nexus-staging

# deploy to GitHub Packages
deploy-github-packages:
Expand All @@ -136,7 +136,7 @@ jobs:
gpg-private-key: ${{ secrets.COM_SONATYPE_CENTRAL_POLARION_OPENSOURCE_GPG_PRIVATE_KEY }}
- name: Cache
id: cache
uses: actions/cache@v4
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: |
/home/runner/.m2
Expand Down
14 changes: 0 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,20 +102,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>

<plugin>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-maven-plugin</artifactId>
<configuration>
<outputFormat>JSON</outputFormat>
<resourcePackages>
<package>ch.sbb.polarion.extension.generic.rest.controller</package>
<package>ch.sbb.polarion.extension.generic.rest.model</package>
<package>ch.sbb.polarion.extension.api.extender.rest.controller</package>
<package>ch.sbb.polarion.extension.api.extender.rest.model</package>
</resourcePackages>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit a1ec8a4

Please sign in to comment.