push #102
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Maven Package | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Standard Checkout | |
uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
- name: | |
Change directory to | |
server/content | |
run: cd server/content | |
- name: Build with Maven | |
run: mvn -B package -f | |
server/content/pom.xml # Replace "path/to/pom.xml" with the actual path to your pom.xml file | |
- name: | |
Publish to GitHub Packages | |
Apache Maven | |
run: mvn deploy -f | |
server/content/pom.xml # Replace "path/to/pom.xml" with the actual path to your pom.xml file | |
env: | |
GITHUB_TOKEN: | |
${{ github.token }} |