Skip to content

chore: add production pipeline #1

chore: add production pipeline

chore: add production pipeline #1

Workflow file for this run

name: Develop PR
on:
push:
branches:
- main
jobs:
build:
environment: production
runs-on: ubuntu-22.04
steps:
- name: 🏃‍ Checkout
uses: actions/checkout@v4
- name: 📌 Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: "yarn"
- name: 📌 Install dependencies
run: yarn install
- name: 🏗️ Build
run: yarn build
env:
GATSBY_ALGOLIA_APP_ID: ${{ secrets.GATSBY_ALGOLIA_APP_ID }}
GATSBY_ALGOLIA_INDEX_NAME: ${{ secrets.GATSBY_ALGOLIA_INDEX_NAME }}
GATSBY_ALGOLIA_SEARCH_KEY: ${{ secrets.GATSBY_ALGOLIA_SEARCH_KEY }}
ALGOLIA_ADMIN_KEY: ${{ secrets.ALGOLIA_ADMIN_KEY }}
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
- name: 📦 Upload public directory as artifact
uses: actions/upload-artifact@v3
with:
name: jandir.co
path: public/
deploy:
needs: build
runs-on: ubuntu-22.04
steps:
- name: 🏃‍ Checkout
uses: actions/checkout@v4
- name: 📦 Download public directory artifact
uses: actions/download-artifact@v3
with:
name: jandir.co