2019-12-30 08:55:40 +03:00
|
|
|
name: pages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-10-02 15:26:22 +03:00
|
|
|
- main
|
2021-02-07 20:59:10 +03:00
|
|
|
paths:
|
2021-10-02 15:26:22 +03:00
|
|
|
- "docs/**"
|
|
|
|
- "ci/build-docs.sh"
|
|
|
|
- "ci/generate-docs.py"
|
|
|
|
- "ci/subst-release-info.py"
|
|
|
|
- ".github/workflows/pages.yml"
|
2019-12-30 09:22:14 +03:00
|
|
|
schedule:
|
|
|
|
- cron: "50 * * * *"
|
|
|
|
|
2023-02-26 03:49:57 +03:00
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
pages: write
|
|
|
|
id-token: write
|
2024-01-03 23:37:20 +03:00
|
|
|
actions: read
|
2023-02-26 03:49:57 +03:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: "pages"
|
|
|
|
|
2019-12-30 08:55:40 +03:00
|
|
|
jobs:
|
2023-02-26 03:49:57 +03:00
|
|
|
build:
|
2019-12-30 08:55:40 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-04-11 04:34:51 +03:00
|
|
|
uses: actions/checkout@v3
|
2022-10-01 16:31:35 +03:00
|
|
|
- name: "Install Rust"
|
2023-03-24 20:16:09 +03:00
|
|
|
uses: dtolnay/rust-toolchain@stable
|
2022-07-18 11:59:56 +03:00
|
|
|
- name: Install gelatyx
|
2023-03-27 05:47:48 +03:00
|
|
|
uses: baptiste0928/cargo-install@v2
|
2023-03-16 05:22:51 +03:00
|
|
|
with:
|
|
|
|
crate: gelatyx
|
2023-12-11 04:36:21 +03:00
|
|
|
- uses: actions/setup-python@v5
|
2023-03-16 05:22:51 +03:00
|
|
|
with:
|
|
|
|
python-version: 3.x
|
2024-01-22 04:37:07 +03:00
|
|
|
- uses: actions/cache@v4
|
2023-03-16 05:22:51 +03:00
|
|
|
with:
|
|
|
|
key: ${{ github.ref }}
|
|
|
|
path: .cache
|
2019-12-30 08:55:40 +03:00
|
|
|
- name: Build
|
2022-12-22 20:52:42 +03:00
|
|
|
env:
|
2022-12-27 20:10:05 +03:00
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2019-12-30 09:37:06 +03:00
|
|
|
run: |
|
|
|
|
source $HOME/.cargo/env
|
2023-03-16 05:22:51 +03:00
|
|
|
CARDS=true ./ci/build-docs.sh
|
2023-02-26 03:49:57 +03:00
|
|
|
- name: Upload artifact
|
2023-07-17 04:23:14 +03:00
|
|
|
uses: actions/upload-pages-artifact@v2
|
2019-12-30 08:55:40 +03:00
|
|
|
with:
|
2023-03-16 05:22:51 +03:00
|
|
|
path: gh_pages
|
2023-02-26 03:49:57 +03:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
environment:
|
|
|
|
name: github-pages
|
|
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: build
|
|
|
|
steps:
|
|
|
|
- name: Deploy
|
|
|
|
id: deployment
|
2024-01-04 00:30:05 +03:00
|
|
|
uses: actions/deploy-pages@v2
|