-
-
Notifications
You must be signed in to change notification settings - Fork 62
37 lines (31 loc) · 944 Bytes
/
deploy_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
name: Deploy docs
on:
push:
paths:
- 'crates/**/*'
- '.github/workflows/deploy_docs.yml'
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
with:
prefix-key: "3"
- name: Install linux dependencies
run: |
sudo apt update && sudo apt install build-essential libssl-dev pkg-config libglib2.0-dev libgtk-3-dev
- name: cargo doc
run: cargo build -p freya-components-docs && cargo doc --no-deps --workspace
- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: freya-docs
entrypoint: https://deno.land/std/http/file_server.ts
root: target/doc