geoms 0.0.1

Optimized geometry primitives for Microsoft platforms with the same memory layout as DirectX and Direct2D and types
Documentation
name: Rustdocs

on:
  push:
    branches: ["main"]

  workflow_dispatch:

permissions:
  contents: read
  pages: write
  id-token: write

concurrency:
  group: "pages"
  cancel-in-progress: true

jobs:
  deploy:
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}

    runs-on: windows-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Install latest nightly
        uses: actions-rs/toolchain@v1
        with:
            toolchain: nightly
            components: rustc

      - name: Setup Pages
        uses: actions/configure-pages@v2

      - name: Build Documentation
        run: cargo +nightly doc --lib --all-features

      - name: Create index
        run: |
            '<meta http-equiv="refresh" content="0; url=geoms">' | Out-File .\target\doc\index.html

      - name: Upload artifact
        uses: actions/upload-pages-artifact@v1
        with:
          path: './target/doc'

      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v1