Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Merge pull request #21 from dolbyio-samples/dependabot/npm_and_yarn/p… #51

Merge pull request #21 from dolbyio-samples/dependabot/npm_and_yarn/p…

Merge pull request #21 from dolbyio-samples/dependabot/npm_and_yarn/p… #51

name: Build and Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
build-and-deploy:
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
contents: read
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: macos-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install 🔧
run: yarn install
- name: ESLint 🧽
run: yarn run lint
- name: Build 🔨
run: yarn run github-pages
- name: Setup GitHub Pages 🛠
uses: actions/configure-pages@v2
- name: Upload artifact ⬆️
uses: actions/upload-pages-artifact@v1
with:
path: dist_mixer
- name: Deploy to GitHub Pages 🚀
id: deployment
uses: actions/deploy-pages@v1