-
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (56 loc) · 2 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Deploy to GitHub Pages
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
container:
image: registry.fedoraproject.org/fedora-minimal:40
steps:
- name: Install required packages
run: |
dnf5 update -y --setopt=install_weak_deps=False
dnf5 install -y --setopt=install_weak_deps=False dnf5-plugins
dnf5 config-manager addrepo --from-repofile='https://github.com/terrapkg/subatomic-repos/raw/main/terra.repo'
dnf5 install -y libhelium-devel libbismuth-devel sass git rust cargo rustdoc rustfmt meson ninja vala 'pkgconfig(gnome-desktop-4)' 'pkgconfig(accountsservice)' 'pkgconfig(udisks2)' 'pkgconfig(gudev-1.0)' 'pkgconfig(libgtop-2.0)' 'pkgconfig(gexiv2)' 'pkgconfig(gweather4)' 'pkgconfig(libpulse)' 'pkgconfig(ibus-1.0)' 'pkgconfig(gl)' desktop-file-utils
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Checkout fusebox
uses: actions/checkout@v4
with:
repository: tau-OS/fusebox
path: fusebox-src
- name: Install fusebox
run: meson build
working-directory: ./fusebox-src
- name: Build fusebox with Ninja
run: ninja
working-directory: ./fusebox-src/build
- name: Install fusebox globally
run: ninja install
working-directory: ./fusebox-src/build
- name: Generate docs
run: cargo install rustdoc-stripper
- run: PATH="$HOME/.cargo/bin:$PATH" ./generator.py --embed-docs
- run: cargo doc --no-deps
- run: mv target/doc/ docs
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "docs/"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4