Skip to content

Commit bfce704

Browse files
committed
Auto merge of #1924 - JohnTitor:upload-docs, r=JohnTitor
Upload documentation to gh-pages from GHA I missed this on #1918 🥵
2 parents d1d64b1 + 1294a29 commit bfce704

File tree

2 files changed

+25
-22
lines changed

2 files changed

+25
-22
lines changed

.github/workflows/docs.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Upload documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
upload_docs:
10+
name: Upload documentation
11+
runs-on: ubuntu-18.04
12+
if: github.repository == 'rust-lang/libc'
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Setup Rust toolchain
17+
run: TARGET=x86_64-unknown-linux-gnu sh ./ci/install-rust.sh
18+
- name: Generate documentation
19+
run: LIBC_CI=1 sh ci/dox.sh
20+
- name: Upload documentation to GitHub Pages
21+
uses: rust-lang/simpleinfra/github-actions/static-websites@master
22+
with:
23+
deploy_dir: target/doc
24+
github_token: "${{ secrets.GITHUB_TOKEN }}"
25+
if: github.ref == 'refs/heads/master'

ci/azure-master.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)