2021-03-22 12:46:02 +01:00
|
|
|
name: Upload Documentation
|
2020-01-30 06:44:05 +01:00
|
|
|
|
|
|
|
on:
|
2023-04-09 20:35:30 +02:00
|
|
|
push: { branches: [master] }
|
|
|
|
|
2023-04-09 20:41:57 +02:00
|
|
|
permissions: { contents: write }
|
2023-04-09 20:35:30 +02:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2020-01-30 06:44:05 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-09-16 01:54:02 +02:00
|
|
|
- uses: actions/checkout@v4
|
2020-01-30 06:44:05 +01:00
|
|
|
|
2023-04-09 20:41:57 +02:00
|
|
|
- name: Install Rust (nightly)
|
2023-09-16 01:30:38 +02:00
|
|
|
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
|
2023-04-09 20:41:57 +02:00
|
|
|
with: { toolchain: nightly }
|
2020-01-30 06:44:05 +01:00
|
|
|
|
2021-03-22 12:46:02 +01:00
|
|
|
- name: Build Docs
|
2022-12-01 11:45:31 +01:00
|
|
|
run: cargo doc --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
|
2023-09-16 01:54:21 +02:00
|
|
|
uses: JamesIves/github-pages-deploy-action@v4.4.3
|
2020-07-19 23:18:00 +02:00
|
|
|
with:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
BRANCH: gh-pages
|
|
|
|
FOLDER: target/doc
|