Skip to content

Commit

Permalink
ci: setup deploy-pages action
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed May 22, 2024
1 parent 8d1e0aa commit 0c5c855
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# push:
# branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -33,11 +33,14 @@ jobs:
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Deploy site to Github pages
run: |
mvn -B --projects core-jdk8 site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
path: './core-jdk8/target/site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
19 changes: 19 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@
</dependencies>
</dependencyManagement>

<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version> <!-- Use the latest version -->
</plugin>
</plugins>
</reporting>

<build>
<pluginManagement>
<plugins>
Expand All @@ -84,11 +94,20 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>4.0.0-M14</version>
</plugin>
</plugins>

</pluginManagement>
</build>

Expand Down

0 comments on commit 0c5c855

Please sign in to comment.