Skip to content

Merge pull request #26 from calimania/feat/cafecito #110

Merge pull request #26 from calimania/feat/cafecito

Merge pull request #26 from calimania/feat/cafecito #110

Workflow file for this run

name: Build and Deploy
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
workflow_dispatch:
env:
STRAPI_URL: ${{ secrets.STRAPI_URL }}
MARKKET_URL: ${{ secrets.MARKKET_URL }}
MARKKETPLACE_URL: ${{ secrets.MARKKETPLACE_URL }}
STORE_SLUG: ${{ secrets.STORE_SLUG }}
PUBLIC_POSTHOG_KEY : ${{ secrets.PUBLIC_POSTHOG_KEY }}
permissions:
contents: write
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
deploy:
needs: build
runs-on: ubuntu-latest
if: (github.event_name == 'push' && github.ref == 'refs/heads/main' ) || (github.event_name == 'workflow_dispatch')
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4