From a4508950ef67713d0a6d6d54a1e78e53f3ba8385 Mon Sep 17 00:00:00 2001 From: ParadoxV5 Date: Sat, 23 Mar 2024 14:24:06 -0600 Subject: [PATCH] Alright, `documentation.yml` is also a test now. --- .github/workflows/documentation.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 07726cf..5217830 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -1,7 +1,6 @@ name: Generate Documentation with YARD on: push: - branches: [main] paths: - .github/workflows/documentation.yml - .yardopts @@ -9,23 +8,24 @@ on: - lib/** - README.md - Gemfile - -concurrency: - group: pages - cancel-in-progress: true + pull_request: + paths: + - .github/workflows/documentation.yml + - .yardopts + - docs/** + - lib/** + - README.md + - Gemfile jobs: build: runs-on: ubuntu-latest - timeout-minutes: 2 steps: - uses: actions/checkout@v4 with: submodules: recursive - - uses: actions/configure-pages@v4 - - uses: ruby/setup-ruby@v1 with: ruby-version: '3' @@ -40,11 +40,18 @@ jobs: deploy: needs: build + if: github.ref_name == 'main' environment: name: github-pages url: ${{ steps.deploy-pages.outputs.page_url }} - permissions: write-all + concurrency: + group: pages + cancel-in-progress: true runs-on: ubuntu-latest + permissions: write-all steps: + + - uses: actions/configure-pages@v4 + - id: deploy-pages uses: actions/deploy-pages@v4