30 lines
542 B
YAML
30 lines
542 B
YAML
name: Docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
|
|
build:
|
|
name: Build and Deploy Docs
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
- name: Install latest nightly
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: nightly
|
|
override: true
|
|
- name: Build docs
|
|
run: |
|
|
cargo doc --no-deps
|
|
- name: Deploy to firebase
|
|
uses: w9jds/firebase-action@v1.1.0
|
|
with:
|
|
args: deploy
|
|
env:
|
|
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|