Skip to content

Commit

Permalink
Merge pull request #156 from jonbullock/change/switch-to-github-pages
Browse files Browse the repository at this point in the history
Switches to GitHub Pages for hosting
  • Loading branch information
jonbullock authored Apr 2, 2023
2 parents 447660e + 3551006 commit 2ed395e
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 11 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/gh-pages-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: GitHub Pages deployment

on:
push:
branches:
- master

jobs:
build-deploy:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'zulu'
cache: 'maven'

- run: mvn -ntp -B clean generate-resources

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/website
cname: jbake.org
11 changes: 0 additions & 11 deletions .gitlab-ci.yml

This file was deleted.

1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jbake.org
52 changes: 52 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<groupId>org.jbake</groupId>
<artifactId>jbake-website</artifactId>
<packaging>pom</packaging>
<version>0.0.1-SNAPSHOT</version>

<name>JBake website</name>
<description>Source of the JBake website</description>
<url>https://jbake.org</url>
<inceptionYear>2012</inceptionYear>

<properties>
<jbake-version>2.7.0-rc.6</jbake-version>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.jbake</groupId>
<artifactId>jbake-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<inputDirectory>${project.basedir}</inputDirectory>
<outputDirectory>${project.build.directory}/website</outputDirectory>
</configuration>
</plugin>
</plugins>

<pluginManagement>
<plugins>
<plugin>
<groupId>org.jbake</groupId>
<artifactId>jbake-maven-plugin</artifactId>
<version>${jbake-version}</version>
</plugin>
</plugins>
</pluginManagement>
</build>

</project>

0 comments on commit 2ed395e

Please sign in to comment.