From ad987182d5ad44cad6a3900dff4946bfb1e44bb1 Mon Sep 17 00:00:00 2001 From: Kevin Fischer Date: Sun, 7 Jul 2024 09:45:39 +0900 Subject: [PATCH] Add deploy docs workflow --- .github/workflows/deploy-docs.yml | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/deploy-docs.yml diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml new file mode 100644 index 0000000..ef79493 --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -0,0 +1,41 @@ +name: Deploy Docs + +on: + release: + types: + - published + + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +jobs: + build-and-deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + path: ./dragon_skeleton + - name: Setup Pages + uses: actions/configure-pages@v4 + - uses: kfischer-okarin/download-dragonruby@v1 + - name: Build Docs + working-directory: ./dragon_skeleton + run: rdoc -V lib + - name: Generate images + run: xvfb-run ./dragonruby dragon_skeleton --eval app/generate_easing_images.rb + - name: Upload gartifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./dragon_skeleton/doc + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4