27 lines
583 B
YAML
27 lines
583 B
YAML
name: Deploy FrontEnd
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
deploy-frontend:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: 🏗 Setup repo
|
|
uses: actions/checkout@v3
|
|
|
|
- name: 🏗 Setup node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16.x
|
|
cache: 'npm'
|
|
|
|
- name: 🏗 Install dependencies
|
|
run: npm ci
|
|
|
|
- name: 📦 Build app bundle
|
|
run: npm run build --if-present
|
|
|
|
- name: 📦 Deploy to netlify
|
|
run: netlify deploy --auth ${{ secrets.NETLIFY_AUTH_TOKEN }} --site p2pix --prod |