Model upload and positioning #101
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
env: | |
IN_CI: '1' | |
jobs: | |
build: | |
timeout-minutes: 3 | |
runs-on: ubuntu-24.04 | |
name: Basic checks | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Retrieve npm dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build -- --base /ngv | |
- name: Prettier | |
run: npm run prettier | |
- name: Linter | |
run: npm run lint | |
# - name: Api extractor | |
# run: npm run api-extractor-check | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: 'dist' | |
deploy: | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: build | |
permissions: | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate source | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |