Ed/timeout #2947
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Documentation Workflow | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
branches: | |
- 'main' | |
- '*/*' | |
schedule: | |
- cron: '0 0 * * 1' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 35 | |
steps: | |
- uses: styfle/[email protected] | |
name: Cancel Outdated Builds | |
with: | |
all_but_latest: true | |
access_token: ${{ github.token }} | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y protobuf-compiler | |
cargo install just | |
- uses: Swatinem/rust-cache@v2 | |
name: Enable Rust Caching | |
- name: Build Docs | |
run: | | |
just async_std doc | |
- name: Create documentation | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: | | |
cp -R target/doc public | |
echo '<meta http-equiv="refresh" content="0; url=hotshot">' > public/index.html | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./public | |
cname: hotshot.docs.espressosys.com |