Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hello-strongbox-maven #28

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
16 changes: 16 additions & 0 deletions .github/workflows/gh-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,19 @@ jobs:
working-directory: 'hello-strongbox-npm'
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-hello-strongbox-maven:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Maven install
run: mvn clean install
working-directory: 'hello-strongbox-maven'
# This is seperate so it may only be deployed conditionally
- name: Maven deploy
Comment on lines +85 to +86

This comment was marked as resolved.

Copy link
Member

@steve-todorov steve-todorov Oct 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually leave it as it is right now. It might be useful for branch deploys / testing.

run: mvn -DaltDeploymentRepository=github::default::https://maven.pkg.github.com/$GITHUB_REPOSITORY deploy
working-directory: 'hello-strongbox-maven'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
carlspring marked this conversation as resolved.
Show resolved Hide resolved
13 changes: 13 additions & 0 deletions hello-strongbox-maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,17 @@
</snapshotRepository>
</distributionManagement>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>