Skip to content

move to de.cytooxien namespace / github maven package repo #8

move to de.cytooxien namespace / github maven package repo

move to de.cytooxien namespace / github maven package repo #8

name: Build and Publish to GitHub Maven
on:
push:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
cache: maven
- name: Set up Maven settings
run: |
mkdir -p $HOME/.m2
echo '<settings><servers><server><id>github</id><username>${env.GITHUB_ACTOR}</username><password>${{ secrets.GITHUB_TOKEN }}</password></server></servers></settings>' > $HOME/.m2/settings.xml
shell: bash
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build with Maven
run: mvn clean install
- name: Publish to GitHub Packages
run: mvn deploy -DskipTests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}