Setup automated deploy of our skills #2
Workflow file for this run
This file contains hidden or 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: Validate PR | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install pre-commit | |
| run: python3 -m pip install pre-commit | |
| - name: Run pre-commit | |
| run: pre-commit run --all-files | |
| - name: Validate CDN site build | |
| run: python3 scripts/skills_cdn.py build-site --output dist | |
| - name: Validate release archive build | |
| run: | | |
| version=$(tr -d '\n' < VERSION) | |
| python3 scripts/skills_cdn.py build-archives --version "$version" --output release-assets |