Skip to content

sitemap added

sitemap added #8

Workflow file for this run

name: 🚀 Deploy
on:
push:
branches:
- main
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
jobs:
prettier:
name: 💅 Prettier
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: 📥 Download deps
uses: pnpm/action-setup@v2
with:
version: 8
run_install: |
args: [--frozen-lockfile]
- name: 💅 Prettier
run: pnpm check-format
cypress:
name: ⚫️ Cypress
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: 📥 Download deps
uses: pnpm/action-setup@v2
with:
version: 8
run_install: |
args: [--frozen-lockfile]
- name: 🌳 Cypress run
run: pnpm test:e2e:ci
deploy:
name: 🚀 Deploy
runs-on: ubuntu-latest
needs: [prettier, cypress]
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: 📥 Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: △ Install Vercel CLI
run: pnpm install --global vercel@canary
- name: ♻️ Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: 🏗 Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: 🚀 Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}