2021-03-22 12:46:02 +01:00
|
|
|
name: Upload Documentation
|
2020-01-30 06:44:05 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-03-22 12:46:02 +01:00
|
|
|
branches: [master]
|
2020-01-30 06:44:05 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-05-25 15:07:31 +02:00
|
|
|
- uses: actions/checkout@v3
|
2020-01-30 06:44:05 +01:00
|
|
|
|
|
|
|
- name: Install Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2021-03-22 12:46:02 +01:00
|
|
|
toolchain: nightly-x86_64-unknown-linux-gnu
|
2020-01-30 06:44:05 +01:00
|
|
|
profile: minimal
|
|
|
|
override: true
|
|
|
|
|
2021-03-22 12:46:02 +01:00
|
|
|
- name: Build Docs
|
2020-01-30 06:44:05 +01:00
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: doc
|
2021-03-22 12:46:02 +01:00
|
|
|
args: --workspace --all-features --no-deps
|
2020-01-30 06:44:05 +01:00
|
|
|
|
|
|
|
- name: Tweak HTML
|
2021-03-22 12:46:02 +01:00
|
|
|
run: echo '<meta http-equiv="refresh" content="0;url=actix_cors/index.html">' > target/doc/index.html
|
2020-01-30 06:44:05 +01:00
|
|
|
|
2020-07-19 23:18:00 +02:00
|
|
|
- name: Deploy to GitHub Pages
|
2020-11-30 22:06:48 +01:00
|
|
|
uses: JamesIves/github-pages-deploy-action@3.7.1
|
2020-07-19 23:18:00 +02:00
|
|
|
with:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
BRANCH: gh-pages
|
|
|
|
FOLDER: target/doc
|