properly reformat new code #287
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: ["release", "push", "pull_request"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: adopt | |
- name: Install NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- name: Setup Repo credentials | |
uses: s4u/[email protected] | |
- name: Build Shesmu with Maven | |
run: mvn -B package --file pom.xml | |
- name: Build Shesmu JavaDoc with Maven | |
run: 'mvn javadoc:javadoc -pl shesmu-pluginapi --file pom.xml && mv shesmu-pluginapi/target/reports/apidocs docs/javadoc' | |
- name: Build Jekyll Documentation | |
uses: actions/jekyll-build-pages@v1 | |
with: | |
source: docs | |
verbose: true | |
- name: Upload Pages artifact | |
uses: actions/upload-pages-artifact@v3 | |
- name: Build and Push Docker images | |
if: ${{ github.event_name == 'release' }} | |
uses: macbre/push-to-ghcr@master | |
with: | |
image_name: ${{ github.repository }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
pages: write | |
steps: | |
- name: Upload Pages artifact | |
if: ${{ github.event_name == 'release' }} | |
uses: actions/deploy-pages@v4 | |