Skip to content

Merge pull request #82 from qwerty541/dependabot/github_actions/actio… #104

Merge pull request #82 from qwerty541/dependabot/github_actions/actio…

Merge pull request #82 from qwerty541/dependabot/github_actions/actio… #104

Workflow file for this run

name: docs
on:
push:
branches: [master]
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
name: Build docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a
with:
toolchain: nightly
- name: Build docs
run: cargo doc --no-deps --all-features
- name: Prepare docs
run: |
mkdir -p _site/master
echo '<meta http-equiv="refresh" content="0;url=master/logged_stream/index.html">' > _site/index.html
echo '<meta http-equiv="refresh" content="0;url=logged_stream/index.html">' > _site/master/index.html
mv target/doc/* _site/master
- uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
deploy:
name: Deploy to GitHub Pages
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5