removed index.html file and generated the page using j2html library. … #71
This file contains hidden or 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: 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 | |