feat(nimbus): add advanced targeting for win10 existing users needing… #144
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: Deploy Schemas | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: {} | |
| jobs: | |
| deploy: | |
| name: Deploy Schemas | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 2 | |
| - uses: ./.github/actions/check-changed-paths | |
| id: check-paths | |
| with: | |
| paths: "schemas/" | |
| - name: Check for version change | |
| if: steps.check-paths.outputs.should-run == 'true' | |
| id: version-check | |
| run: | | |
| if git diff HEAD~1 schemas/pyproject.toml | grep 'version'; then | |
| echo "changed=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "No version change, skipping deploy" | |
| echo "changed=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - uses: ./.github/actions/retry | |
| if: steps.check-paths.outputs.should-run == 'true' && steps.version-check.outputs.changed == 'true' | |
| with: | |
| label: Build schemas | |
| run: | | |
| cp .env.sample .env | |
| make schemas_build | |
| - name: Upload to PyPI | |
| if: steps.check-paths.outputs.should-run == 'true' && steps.version-check.outputs.changed == 'true' | |
| run: | | |
| make schemas_deploy_pypi SCHEMAS_ENV="-e TWINE_USERNAME=${{ secrets.TWINE_USERNAME }} -e TWINE_PASSWORD=${{ secrets.TWINE_PASSWORD }}" | |
| - name: Upload to NPM | |
| if: steps.check-paths.outputs.should-run == 'true' && steps.version-check.outputs.changed == 'true' | |
| run: | | |
| make schemas_deploy_npm SCHEMAS_ENV="-e NPM_TOKEN=${{ secrets.NPM_TOKEN }}" |