Skip to content

feat: add environment #16

feat: add environment

feat: add environment #16

Workflow file for this run

name: Deploy Examples
on:
push:
branches: ["master", "etowahadams/fix-deploy"]
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn install
- run: yarn build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload dist repository
path: "./build"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2