Skip to content

Commit

Permalink
Merge pull request #12 from AEtheve/website
Browse files Browse the repository at this point in the history
add maven site workflow
  • Loading branch information
ar0x18 authored Apr 17, 2024
2 parents 97edf6e + 4855493 commit a8b42da
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy static content to Pages

on:
push:
branches: ["main"]

workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build site
run: mvn site
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: target/site
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
15 changes: 15 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
<maven.compiler.target>17</maven.compiler.target>
</properties>

<distributionManagement>
<site>
<id>github</id>
<url>scm:git:git@github.com:AEtheve/AEtheve.github.io.git</url>
</site>
</distributionManagement>

<dependencies>
<dependency>
<groupId>junit</groupId>
Expand Down Expand Up @@ -102,6 +109,14 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-publish-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<scmBranch>gh-pages</scmBranch>
</configuration>
</plugin>
</plugins>

</build>
Expand Down

0 comments on commit a8b42da

Please sign in to comment.