mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2025-01-03 10:06:09 +01:00
Add gh-pages workflow
This commit is contained in:
parent
945d391f63
commit
e3754febfc
25
.github/workflows/gh-pages.yml
vendored
Normal file
25
.github/workflows/gh-pages.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
name: github pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main # Set a branch name to trigger deployment
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: install dependencies
|
||||||
|
run: sudo apt-get install emacs
|
||||||
|
|
||||||
|
- name: make
|
||||||
|
run: make -C src/ doc
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./docs
|
||||||
|
|
16
.github/workflows/test-build.yml
vendored
16
.github/workflows/test-build.yml
vendored
@ -20,22 +20,6 @@ jobs:
|
|||||||
- name: make
|
- name: make
|
||||||
run: make -C src/
|
run: make -C src/
|
||||||
|
|
||||||
- name: build docs
|
|
||||||
run: make -C src/ doc
|
|
||||||
|
|
||||||
- name: GitHub Pages Deploy
|
|
||||||
uses: appleboy/gh-pages-action@v0.0.2
|
|
||||||
|
|
||||||
- name: checkout
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
|
|
||||||
- name: deploy docs
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
username: scemama
|
|
||||||
password: 7da28e533792db220a4811fc4e487b8ba817862f
|
|
||||||
remote_url: https://github.com/appleboy/gh-pages-action.git
|
|
||||||
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user