Skip to content

Commit

Permalink
Add pr-test build for docs
Browse files Browse the repository at this point in the history
Signed-off-by: Frantisek Lachman <[email protected]>
  • Loading branch information
lachmanfrantisek committed Feb 7, 2024
1 parent 33aa016 commit 8e7850b
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/docs-test-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Test deployment of docs

on:
pull_request:
branches:
- main
paths:
- "docs/**"

jobs:
test-deploy:
name: Test deployment of docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: "packit/packit.dev"

- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn

- name: Import the nested docs
run: make import

- name: Remove the ‹main› of ‹agile›
run: rm -rf .agile-docs agile

- name: Checkout the PR
uses: actions/checkout@v3
with:
path: ".agile-docs"

- name: Move out the ‹agile›
run: mv .agile/docs agile

- name: Generate newer usage graphs
run: |
pip3 install click requests pygal
python3 files/generate_usage.py
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test build website
run: yarn build

0 comments on commit 8e7850b

Please sign in to comment.