Skip to content

Commit

Permalink
Merge pull request #6 from hokorobi/publish-gh-pages
Browse files Browse the repository at this point in the history
Add GitHub Actions to publish to GitHub Pages
  • Loading branch information
aklt authored Apr 1, 2022
2 parents 9559c16 + 7723a74 commit 0dccdb3
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish GitHub Pages

on:
push:
branches: [ master ]
workflow_dispatch:
# pull_request:
# branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: chmod x *.sh
run: chmod +x *.sh
- name: make html
run: make index.html;make style.css
timeout-minutes: 60
- name: Generate PNG Diagrams
uses: hokorobi/plantuml-github-action@main
continue-on-error: true
with:
args: -v -tpng uml/*.uml
- name: mkdir
run: mkdir -p publish/uml
- name: copy to dir
run: cp -r index.html style.css uml publish

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./publish

0 comments on commit 0dccdb3

Please sign in to comment.