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

50 lines
1.0 KiB
YAML
Raw Normal View History

2020-10-29 00:56:48 +01:00
name: github pages
on:
push:
branches:
2020-11-25 18:41:55 +01:00
- master
2020-10-29 00:56:48 +01:00
jobs:
deploy:
2020-10-29 01:02:44 +01:00
runs-on: ubuntu-latest
2020-10-29 00:56:48 +01:00
steps:
- uses: actions/checkout@v2
2020-11-07 16:11:34 +01:00
2020-11-05 17:54:58 +01:00
- name: install extra repository
run: sudo add-apt-repository ppa:kelleyk/emacs
2020-11-07 16:11:34 +01:00
2020-11-05 17:54:58 +01:00
- name: refresh apt
run: sudo apt-get update
2020-11-07 16:11:34 +01:00
2020-10-29 00:56:48 +01:00
- name: install dependencies
2020-11-05 17:49:59 +01:00
run: sudo apt-get install emacs26
2020-10-29 00:56:48 +01:00
2020-11-07 16:11:34 +01:00
- name: install htmlize
2020-11-07 16:17:37 +01:00
run: git clone https://github.com/hniksic/emacs-htmlize && cp emacs-htmlize/htmlize.el docs/
2020-11-07 16:11:34 +01:00
2020-10-29 00:56:48 +01:00
- name: make
2021-03-06 20:14:26 +01:00
run: make -C src/ doc && ls -sh ./docs/
- name: pwd
run: pwd
- name: ls
run: ls -sh ./docs
2020-10-29 00:56:48 +01:00
2021-03-06 23:21:10 +01:00
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./docs
2020-10-29 00:56:48 +01:00
- name: Deploy
2021-03-06 23:21:10 +01:00
uses: JamesIves/github-pages-deploy-action@4.1.0
2020-10-29 00:56:48 +01:00
with:
2021-03-06 23:21:10 +01:00
branch: gh-pages
2021-03-06 23:27:48 +01:00
folder: ./docs
2021-03-06 23:21:10 +01:00
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./docs
2020-10-29 00:56:48 +01:00