-
Notifications
You must be signed in to change notification settings - Fork 178
39 lines (30 loc) · 893 Bytes
/
deploy.yml
File metadata and controls
39 lines (30 loc) · 893 Bytes
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
name: Deploy
on:
push:
branches:
main
jobs:
build:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Install mdbook-dtmo
run: |
scripts/crate.sh --repo badboy/mdbook-dtmo --to ~/.cargo/bin
mdbook-dtmo --version
- name: Build
run: |
mdbook-dtmo build .
- name: Install github-pages
run: |
npm install gh-pages@3.1.0
- name: Set Git config
run: |
git config user.email "no-one@mozilla.com"
git config user.name "GitHub Actions docs-deploy job"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
- name: Deploy to GitHub pages
run: |
echo "docs-origin.telemetry.mozilla.org" > book/CNAME
npx gh-pages --dotfiles --message "Deploy docs" --dist book