summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMatthew Peveler <matt.peveler@gmail.com>2020-05-28 09:36:40 +0300
committerGitHub <noreply@github.com>2020-05-28 02:36:40 -0400
commit97373f09f453ae1c63b4284705fafdb70241ae65 (patch)
treebb863c4cd75832dc9ef60fdb57ca65c05e4de7db /.github
parent5c730704bea74ea431b046ca87228750b470a1b8 (diff)
downloadasciidoc-py3-97373f09f453ae1c63b4284705fafdb70241ae65.tar.gz
create script to generate gh-pages website (#102)
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ghpages.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/ghpages.yml b/.github/workflows/ghpages.yml
new file mode 100644
index 0000000..f0bc609
--- /dev/null
+++ b/.github/workflows/ghpages.yml
@@ -0,0 +1,30 @@
+name: Publish to gh-pages
+
+on:
+ push:
+ branches: [ master ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Install dependencies
+ run: sudo apt-get install -y autoconf dblatex docbook-xml docbook-xsl dvipng epubcheck fop graphviz highlight imagemagick libxml2-utils make source-highlight time texlive-latex-base unzip xsltproc lilypond
+
+ - name: Build Website
+ run: bash build_website.sh
+
+ - name: Commit files
+ run: |
+ cd gh-pages
+ git config --local user.email "matt.peveler@gmail.com"
+ git config --local user.name "MasterOdin"
+ git commit -s -m "deploy: ${{ env.GITHUB_SHA }}" -a || :
+
+ - name: Push changes
+ uses: ad-m/github-push-action@master
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}