34 lines
949 B
YAML
34 lines
949 B
YAML
name: "Build docs"
|
|
on:
|
|
push:
|
|
# branches:
|
|
# - master
|
|
jobs:
|
|
docs:
|
|
runs-on: ubuntu-latest-personal
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install latest nightly toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: nightly
|
|
override: true
|
|
|
|
- name: Cache dependencies
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
- name: Build docs
|
|
run: cargo doc --all-features --document-private-items --release
|
|
|
|
- name: Install rsync
|
|
run: sudo apt-get update && sudo apt-get install -y rsync
|
|
|
|
- name: Deploy docs
|
|
run: rsync --compress --verbose --rsh="ssh -i ${{ secrets.OYSTEIKT_GITEA_WEBDOCS_SSH_KEY }} target/docs oysteikt@microbel.pvv.ntnu.no:~/web-docs/gitea/${{ gitea.repository }}/${{ gitea.ref }}"
|
|
|
|
# - name: Upload docs
|
|
# uses: actions/upload-artifact@v3
|
|
# with:
|
|
# name: docs
|
|
# path: target/doc |