Skip to content

deps: bump syn from 2.0.60 to 2.0.63 #1293

deps: bump syn from 2.0.60 to 2.0.63

deps: bump syn from 2.0.60 to 2.0.63 #1293

Workflow file for this run

name: Build and host documentation
on:
push:
branches:
- master
jobs:
build:
name: Build documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install nightly toolchain
run: rustup toolchain install nightly
- name: Build Documentation
run: cargo +nightly doc --no-deps --workspace -F full
env:
RUSTDOCFLAGS: "--cfg docsrs"
RUSTFLAGS: "--cfg docsrs"
- name: Add index file
run: |
mkdir host-docs
echo "<meta http-equiv=\"refresh\" content=\"0; url=libp2p\">" > target/doc/index.html
cp -r target/doc/* ./host-docs
- name: Upload documentation
uses: actions/[email protected]
with:
path: "host-docs/"
deploy:
name: Deploy documentation
needs: build
permissions:
pages: write
id-token: write
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@v4