ci: deploy to github page
This commit is contained in:
parent
4acbdade68
commit
fdd16ec651
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -4,10 +4,10 @@ name: Build
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v4
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
36
.github/workflows/doc.yml
vendored
36
.github/workflows/doc.yml
vendored
|
@ -1,24 +1,42 @@
|
||||||
|
|
||||||
name: Docs
|
name: Docs
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["master"]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: "pages"
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
docs-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
environment:
|
||||||
|
name: github-page
|
||||||
|
url: ${{ steps.deployement.outputs.page_url }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v4
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install build-essential naturaldocs
|
sudo apt-get install build-essential naturaldocs
|
||||||
- name: Build
|
- name: generate-docs
|
||||||
run: |
|
run: |
|
||||||
make docs
|
make docs
|
||||||
- name: Deploy
|
- name: setup-pages
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: actions/configure-pages@v4
|
||||||
|
- name: upload-artifact
|
||||||
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
path: './docs/html'
|
||||||
publish_dir: ./docs/html
|
- name: deploy-github-page
|
||||||
cname: stupidos.d0p1.eu
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v4
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue