Bump paambaati/codeclimate-action from 4cace242c6e0a2dd554bbb3cc12c58047d8af3e5 to a1831d7162ea1fbc612ffe5fb3b90278b7999d59 #303
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy PR preview docs | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- closed | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
deploy-docs-preview: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch merge branch | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
submodules: "true" | |
- name: Set up Python 3.9 | |
if: github.event.action != 'closed' | |
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 | |
with: | |
python-version: "3.9" | |
- name: install prerequisites | |
if: github.event.action != 'closed' | |
run: | | |
python -m pip install --upgrade pip wheel | |
python -m pip install -r ./piped/python/base-requirements/nox.txt | |
- name: Build docs | |
if: github.event.action != 'closed' | |
run: | | |
mkdir site | |
python -m nox -s generate-docs -- -o ./site | |
- name: Deploy preview | |
uses: FasterSpeeding/pr-preview-action@task/override-committer | |
with: | |
git-config-email: "120557446+always-on-duty[bot]@users.noreply.github.com" | |
git-config-name: "always-on-duty[bot]" | |
preview-branch: docs | |
source-dir: ./site/ |