Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
Attempt simple github mvn hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
KendallWeihe committed Jul 22, 2024
1 parent 39d7503 commit 590cb63
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/gh-mvn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish Maven Package

on:
push:
branches:
- main
- kendall/github-mvn-repo

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Java
uses: actions/setup-java@v3
with:
# distribution: 'temurin'
# java-version: '17' # Adjust the Java version as needed
distribution: 'adopt'
java-version: '11'

- name: Set up Maven settings
run: |
mkdir -p ~/.m2
echo "<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\">
<servers>
<server>
<id>github</id>
<username>${{ github.actor }}</username>
<password>${{ secrets.GITHUB_TOKEN }}</password>
</server>
</servers>
</settings>" > ~/.m2/settings.xml
- name: Build and deploy
run: mvn deploy

0 comments on commit 590cb63

Please sign in to comment.