Skip to content

Deploy to Pages

Deploy to Pages #189

Workflow file for this run

---
name: Deploy to Pages
on:
workflow_run:
workflows: ["🚀 Release"]
types:
- completed
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Install dependencies
run: npm ci
- name: Install demo dependencies
run: |
npm install
npm install @etchteam/recycling-locator@latest
working-directory: demo
- name: Build
run: npm run build
env:
VITE_MARKER_KEY: 65ef397bdb8bc8524e2e763b
working-directory: demo
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './demo/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4