LP1903476 Followup; Remove perl action, limit to docs/
authorJason Boyer <JBoyer@equinoxOLI.org>
Wed, 12 Jan 2022 12:17:19 +0000 (07:17 -0500)
committerJason Boyer <JBoyer@equinoxOLI.org>
Wed, 12 Jan 2022 12:41:32 +0000 (07:41 -0500)
Since the 'ubuntu-latest' image includes perl 5.30 the
actions-setup-perl step just adds more time to the process.

GitHub Actions can be limited to (or exclude) paths so now
docs will only be built when pushes or PRs happen under docs/.

Also added a couple name tags for the interface.

Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
.github/workflows/docs.yml

index 0d41f03..29cc5f8 100644 (file)
@@ -1,14 +1,19 @@
-name: docs
-on: [push, pull_request]
+name: Build Docs
+on:
+  push:
+    paths:
+      - 'docs/**'
+  pull_request:
+    paths:
+      - 'docs/**'
 jobs:
-  Build-And-Publish-Docs:
+  build_docs:
+    name: Build Docs
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2
-      - uses: shogo82148/actions-setup-perl@v1
-        with:
-          perl-version: '5.34'
-      - run: |
+      - name: Generate Docs Package
+        run: |
           cd docs
           sed -i 's/branches.*/branches: [HEAD]/' site.yml
           perl generate_docs.pl --base-url http://example.com