Skip to content

Commit

Permalink
Github action for publishing templates website
Browse files Browse the repository at this point in the history
  • Loading branch information
danfickle authored and schrader committed Oct 12, 2020
1 parent aa4e774 commit 806795a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-templates-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build Templates Website

on:
workflow_dispatch:
inputs:
message:
description: 'Commit message for this website deploy'
required: true
default: 'Update templates website'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Compile with Maven
run: mvn -B install -DskipTests
- name: Build website
run: cd openhtmltopdf-templates && mvn -B exec:java -Dexec.mainClass="com.openhtmltopdf.templates.Application" && cd ..
- name: Deploy website
uses: peaceiris/actions-gh-pages@v3
with:
external_repository: danfickle/pdf-templates
personal_token: ${{ secrets.PERSONAL_TOKEN }}
publish_dir: ./openhtmltopdf-templates/target/website/pdfs
commit_message: ${{ github.event.inputs.message }}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
border: 2px solid black;
padding: 10px;
overflow: auto;
max-height: 90vh;
}
li {
line-height: 150%;
Expand Down

0 comments on commit 806795a

Please sign in to comment.