Deploy Maven Repository into GitHub Pages #1
Workflow file for this run
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: Deploy Maven Repository into GitHub Pages | |
on: | |
release: | |
types: [ published ] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '8' | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: checkout current branch | |
uses: actions/checkout@v4 | |
- name: checkout pages branch | |
uses: actions/checkout@v4 | |
with: | |
ref: pages | |
fetch-depth: 0 | |
- name: deploy | |
run: mvn --batch-mode deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
add-paths: maven-repo | |
branch: pages | |
commit-message: update maven repository | |
title: '[AUTO] Update Maven Repository in GitHub Pages' | |
body: auto-generated by Github Workflow |