-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test moving site publish to own workflow
- Loading branch information
Showing
2 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
name: "Maven: Publish Site to GitHub Pages" | ||
|
||
on: # yamllint disable-line rule:truthy | ||
workflow_dispatch: | ||
# Release trigger does not work because the release job uses GITHUB_TOKEN | ||
# release: | ||
# types: [created] | ||
|
||
env: | ||
JAVA_VERSION: "11" | ||
JAVA_DISTRIBUTION: "corretto" | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK ${{ env.JAVA_VERSION }} | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ env.JAVA_VERSION }} | ||
distribution: ${{ env.JAVA_DISTRIBUTION }} | ||
cache: "maven" | ||
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | ||
|
||
- name: Publish site to GitHub Pages | ||
run: mvn site site:stage scm-publish:publish-scm -Pcoverage,pmd -DskipTests | ||
continue-on-error: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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