docs(python): add condition/context support, cleanup some snippets #91
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
# .github/workflows/preview.yml | |
name: Deploy PR previews | |
concurrency: | |
group: preview-${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- closed | |
jobs: | |
deploy-preview: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cached LFS checkout | |
uses: nschloe/action-cached-lfs-checkout@d481127c3821f9c278a6019c39a108ac7004c133 | |
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 | |
with: | |
node-version: 18.x | |
cache: npm | |
- name: Install and Build | |
run: | | |
npm clean-install | |
npm run build | |
- name: Deploy preview | |
uses: rossjrw/pr-preview-action@4668d7cb417ce7067b0b59bc152b1ae1513010de | |
with: | |
source-dir: ./build/ |