Skip to content

Commit

Permalink
Add filter to pages, cache linguist install
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 26, 2024
1 parent 1d13bc7 commit e32d9a5
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@ name: Pages

on:
push:
paths:
- 'docs/**'
- 'javascript/**'
- 'python/**'
- 'README.rst'
- '**/*.rst'
workflow_dispatch:
schedule:
- cron: "0 0 * * 1"

jobs:
build:
runs-on: 'ubuntu-22.04'
runs-on: 'ubuntu-latest'

steps:
- uses: actions/checkout@v3
Expand All @@ -30,8 +36,11 @@ jobs:
with:
node-version: 22

- name: Install Linguist
run: sudo gem install github-linguist
- name: Install git, linguist
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: git ruby-github-linguist
version: docs

- name: Build sphinx docs
run: make docs_dependencies html
Expand All @@ -42,7 +51,7 @@ jobs:

deploy:
needs: build
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

permissions:
pages: write # to deploy to Pages
Expand Down

0 comments on commit e32d9a5

Please sign in to comment.