Skip to content

Create jekyll-gh-pages.yml #41

Create jekyll-gh-pages.yml

Create jekyll-gh-pages.yml #41

name: Java Leaflet Build
#
on: [ push ]
#
jobs:
build:
runs-on: ubuntu-latest
steps:
# This step uses the `actions/checkout` action to download a copy of your repository on the runner.
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'
- name: Build with Maven
run: mvn --batch-mode --update-snapshots package
publish:
needs: [ "build" ]
if: contains(github.ref_name, 'release/')
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'
- name: Deploy to GitHub Packages
env:
GITHUB_USERNAME: makbn
GITHUB_ACTOR: makbn
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn --settings settings.xml deploy