LMD-0001: Fix GitHub page deployment (#38) #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Web Site Publication | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@master | |
with: | |
submodules: recursive | |
- name: Hugo Setup | |
uses: peaceiris/actions-hugo@v3.0.0 | |
with: | |
hugo-version: '0.125.7' | |
extended: true | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2 | |
- name: Asciidoctor Setup | |
run: gem install asciidoctor | |
- name: Hugo Build | |
run: | | |
alias asciidoctor="asciidoctor --attribute=experimental=true --attribute=icons=font" | |
hugo --gc --minify --cleanDestinationDir | |
- name: Deploy Github Pages | |
uses: peaceiris/actions-gh-pages@v4.0.0 | |
with: | |
publish_dir: ./public | |
publish_branch: gh-pages | |
personal_token: ${{ secrets.LMD_TOKEN }} |