chore: deploy script
This commit is contained in:
parent
5150ea7284
commit
a721c72935
27
.github/workflows/cd.yml
vendored
Normal file
27
.github/workflows/cd.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user