From a721c72935052cb8ed4a77cdddc4f76b2cc37825 Mon Sep 17 00:00:00 2001 From: RcleydsonR Date: Mon, 24 Oct 2022 21:33:07 -0300 Subject: [PATCH] chore: deploy script --- .github/workflows/cd.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/cd.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..a06b080 --- /dev/null +++ b/.github/workflows/cd.yml @@ -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 \ No newline at end of file