mirror of
https://github.com/hyprwm/hyprlang.git
synced 2024-11-16 18:25:57 +01:00
CI: deploy docs (#2)
This commit is contained in:
parent
efcd821ee0
commit
2b87493487
3 changed files with 42 additions and 2 deletions
40
.github/workflows/arch.yml
vendored
40
.github/workflows/arch.yml
vendored
|
@ -69,3 +69,43 @@ jobs:
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
cd ./tests && ../build/hyprlang_test
|
cd ./tests && ../build/hyprlang_test
|
||||||
|
|
||||||
|
doxygen:
|
||||||
|
name: "Deploy docs"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: archlinux
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository actions
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
sparse-checkout: .github/actions
|
||||||
|
|
||||||
|
- name: Get required pkgs
|
||||||
|
run: |
|
||||||
|
sed -i 's/SigLevel = Required DatabaseOptional/SigLevel = Optional TrustAll/' /etc/pacman.conf
|
||||||
|
pacman --noconfirm --noprogressbar -Syyu
|
||||||
|
pacman --noconfirm --noprogressbar -Sy gcc base-devel cmake clang doxygen git openssh
|
||||||
|
|
||||||
|
- name: Get doxygen theme
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/jothepro/doxygen-awesome-css
|
||||||
|
cd doxygen-awesome-css && git checkout v2.3.1 && cd ..
|
||||||
|
|
||||||
|
- name: Build doxygen site
|
||||||
|
run: |
|
||||||
|
doxygen hyprlang-docs
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
env:
|
||||||
|
PK: ${{ secrets.UPDATE_DOCS_PK }}
|
||||||
|
PT: ${{ secrets.DEPLOY_PORT5 }}
|
||||||
|
AD: ${{ secrets.DEPLOY_USER }}
|
||||||
|
PH: ${{ secrets.DEPLOY_PATH }}
|
||||||
|
run: |
|
||||||
|
echo "$PK" > ./pk
|
||||||
|
chmod 400 ./pk
|
||||||
|
eval $(ssh-agent -s) && ssh-add ./pk
|
||||||
|
scp -O -o "StrictHostKeyChecking=no" -P $PT -r ./doxygen/html/* $AD:.$PH
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -50,4 +50,4 @@ add_baker = Koichi, 18, Morioh
|
||||||
|
|
||||||
## Docs
|
## Docs
|
||||||
|
|
||||||
Soon:tm:
|
Visit [hyprland.org/hyprlang](https://hyprland.org/hyprlang) to see the documentation.
|
||||||
|
|
|
@ -1928,7 +1928,7 @@ EXTRA_SEARCH_MAPPINGS =
|
||||||
# If the GENERATE_LATEX tag is set to YES, doxygen will generate LaTeX output.
|
# If the GENERATE_LATEX tag is set to YES, doxygen will generate LaTeX output.
|
||||||
# The default value is: YES.
|
# The default value is: YES.
|
||||||
|
|
||||||
GENERATE_LATEX = YES
|
GENERATE_LATEX = NO
|
||||||
|
|
||||||
# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a
|
# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a
|
||||||
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
|
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
|
||||||
|
|
Loading…
Reference in a new issue