actor12 0.0.9

A lightweight actor framework for Rust with async support
Documentation
name: Deploy Documentation

on:
  # Runs on pushes to main branch
  push:
    branches: ["main"]
    paths: ["src/**", "Cargo.toml", "README.md"]
  
  # Allows manual trigger from Actions tab
  workflow_dispatch:

# Sets permissions for GitHub Pages deployment
permissions:
  contents: read
  pages: write
  id-token: write

# Allow only one concurrent deployment
concurrency:
  group: "pages"
  cancel-in-progress: false

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        
      - name: Setup Rust
        uses: dtolnay/rust-toolchain@stable
        
      - name: Setup Pages
        id: pages
        uses: actions/configure-pages@v4
        
      - name: Build documentation with rustdoc
        run: cargo doc --no-deps --document-private-items
        
      - name: Add redirect index.html
        run: |
          echo '<meta http-equiv="refresh" content="0; url=runy_actor">' > target/doc/index.html
        
      - name: Upload Pages artifact
        uses: actions/upload-pages-artifact@v3
        with:
          path: ./target/doc

  deploy:
    needs: build
    runs-on: ubuntu-latest
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    steps:
      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v4