2024-02-08 16:31:46 -05:00
|
|
|
name: Deploy Nightly Docs
|
2022-02-10 11:18:36 -05:00
|
|
|
on:
|
2024-02-08 16:31:46 -05:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2023-07-19 12:50:28 -07:00
|
|
|
|
2022-02-10 11:18:36 -05:00
|
|
|
jobs:
|
2024-02-08 16:33:28 -05:00
|
|
|
deploy:
|
2024-02-08 17:30:32 -05:00
|
|
|
if: github.event.pull_request.draft == false
|
2024-02-08 16:35:59 -05:00
|
|
|
name: Build & Deploy
|
2024-02-08 16:34:15 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
contents: write
|
2024-02-08 16:31:46 -05:00
|
|
|
|
2024-02-08 16:34:15 -05:00
|
|
|
steps:
|
2024-02-08 17:14:52 -05:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- run: sudo apt-get update
|
|
|
|
- run: sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev libxdo-dev
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
2024-02-08 17:17:06 -05:00
|
|
|
with:
|
|
|
|
cache-all-crates: "true"
|
|
|
|
save-if: ${{ github.ref == 'refs/heads/master' }}
|
|
|
|
- uses: ilammy/setup-nasm@v1
|
2022-02-10 11:18:36 -05:00
|
|
|
|
2022-08-04 11:26:04 -04:00
|
|
|
|
2024-02-08 16:34:15 -05:00
|
|
|
- name: cargo doc
|
2024-02-08 17:30:32 -05:00
|
|
|
run: cargo doc --no-deps --workspace --features fullstack/server
|
2022-02-10 11:18:36 -05:00
|
|
|
|
2024-02-08 16:34:15 -05:00
|
|
|
- name: upload artifacts
|
|
|
|
uses: actions/upload-pages-artifact@v3
|
2022-02-10 11:18:36 -05:00
|
|
|
|
2024-02-08 16:34:15 -05:00
|
|
|
- name: Deploy
|
|
|
|
uses: JamesIves/github-pages-deploy-action@v4.5.0
|
|
|
|
with:
|
|
|
|
branch: gh-pages-docs
|
|
|
|
folder: target/doc
|
|
|
|
#target-folder: docs
|
|
|
|
#repository-name:
|