Skip to content

Update dependencies #627

Update dependencies

Update dependencies #627

Workflow file for this run

# From https://github.blog/changelog/2022-07-27-github-pages-custom-github-actions-workflows-beta/
name: Demo
on:
- pull_request
- push
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci
- run: npm run demo:build
- run: npm run demo:test
- run: grep -rq "/fregante/" ./demo/dist
# https://github.com/refined-github/github-url-detection/pull/161
name: Ensure that the demo is built correctly
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: demo/dist/
deploy:
# Allow one concurrent deployment
concurrency:
group: 'pages'
cancel-in-progress: true
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1