1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-07-03 01:46:12 +02:00
qmckl/.github/workflows/gh-pages.yml

56 lines
1.3 KiB
YAML

name: github pages
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install extra repository
run: sudo add-apt-repository ppa:kelleyk/emacs
- name: refresh apt
run: sudo apt-get update
- name: install dependencies
run: sudo apt-get install emacs26 autoconf
- name: install htmlize
run: git clone https://github.com/hniksic/emacs-htmlize && cp emacs-htmlize/htmlize.el share/doc/qmckl/html/
- name: ./autogen.sh
run: ./autogen.sh
- name: ./configure
run: ./configure --without-munit
- name: make
run: make -C src/ doc && ls -sh ./share/doc/qmckl/html/
- name: pwd
run: pwd
- name: ls
run: ls -sh ./share/doc/qmckl/html/
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./share/doc/qmckl/html/
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
branch: gh-pages
folder: ./share/doc/qmckl/html/
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./share/doc/qmckl/html/