mirror of
https://github.com/hyprwm/hyprlang.git
synced 2024-12-22 18:09:49 +01:00
add deploy ci
This commit is contained in:
parent
efcd821ee0
commit
ed2103837f
1 changed files with 41 additions and 0 deletions
41
.github/workflows/arch.yml
vendored
41
.github/workflows/arch.yml
vendored
|
@ -69,3 +69,44 @@ jobs:
|
|||
- name: Run tests
|
||||
run: |
|
||||
cd ./tests && ../build/hyprlang_test
|
||||
|
||||
doxygen:
|
||||
name: "Deploy docs"
|
||||
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 rsync
|
||||
|
||||
- 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_PORT }}
|
||||
AD: ${{ secrets.DEPLOY_USER }}
|
||||
PH: ${{ secrets.DEPLOY_PATH }}
|
||||
run: |
|
||||
touch ./pk
|
||||
cat >> ./pk << EOF
|
||||
$PK
|
||||
EOF
|
||||
eval $(ssh-agent -s) && ssh-add ./pk
|
||||
scp -P $PT -r ./doxygen/* $AD:.$PH
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue