Skip to content

Commit

Permalink
Lets generate webpage preview at PR
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Oct 14, 2024
1 parent 108baa6 commit d530fc4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/pdf-at-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,39 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
path: documentation

- uses: actions/checkout@v4
with:
ref: www
path: www

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
cd documentation
python -m pip install --upgrade pip
pip install setuptools wheel
pip install -r requirements.txt
- name: Run mkdocs --clean
run: |
cd documentation
mkdocs build --clean
- uses: devindford/Append_PR_Comment@v1.1.2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
body-template: |
This was added after the action ran
Isn't this cool! ${{ github.event.pull_request.head.sha }}
body-update-action: 'suffix'

- name: Upload pdf
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit d530fc4

Please sign in to comment.