2025-02-07 15:28:56 +01:00
|
|
|
on:
|
2025-02-16 14:14:30 +01:00
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: '37 * * * *'
|
2025-02-07 15:31:31 +01:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'mai*'
|
2025-02-07 15:26:40 +01:00
|
|
|
|
2025-02-07 15:28:56 +01:00
|
|
|
jobs:
|
|
|
|
test:
|
2025-02-14 21:31:15 +01:00
|
|
|
runs-on: self-hosted
|
2025-02-07 15:28:56 +01:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
2025-02-12 17:39:24 +01:00
|
|
|
- name: Checkout oxidized
|
2025-02-07 15:28:56 +01:00
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
2025-02-08 21:08:17 +01:00
|
|
|
repository: milka64/oxidized
|
2025-02-08 20:51:11 +01:00
|
|
|
token: ${{ secrets.TOKEN }}
|
2025-02-12 17:39:24 +01:00
|
|
|
path: oxidized
|
2025-02-08 21:13:40 +01:00
|
|
|
ref: master
|
2025-02-08 21:14:55 +01:00
|
|
|
|
2025-02-12 17:39:24 +01:00
|
|
|
- name: Checkout nginx config
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
repository: milka64/nginx-config
|
|
|
|
token: ${{ secrets.TOKEN }}
|
|
|
|
path: nginx-config
|
|
|
|
ref: main
|
|
|
|
|
2025-02-14 21:33:39 +01:00
|
|
|
- name: "create devices directory"
|
|
|
|
run: 'mkdir source/devices'
|
|
|
|
|
2025-02-14 21:14:14 +01:00
|
|
|
- name: Parsing conf
|
2025-02-14 21:23:33 +01:00
|
|
|
run: "cd parsers && python3.11 base.py"
|
2025-02-14 21:14:14 +01:00
|
|
|
|
|
|
|
- name: Builing documentation
|
2025-02-14 21:18:42 +01:00
|
|
|
run: 'make html'
|
2025-02-14 21:23:33 +01:00
|
|
|
|
2025-02-16 14:27:05 +01:00
|
|
|
- name: deploy documentation
|
|
|
|
run: 'cp build/* /data/documentation/'
|
|
|
|
|
|
|
|
- name: chown documentation
|
|
|
|
run: 'chown www-data:www-data -R /data/documentation/'
|