From ec1c5f43d2ce5988021fa8e090c8e75c633c9218 Mon Sep 17 00:00:00 2001 From: MisterPrada Date: Sun, 10 Dec 2023 23:04:03 +0300 Subject: [PATCH] update pipeline --- .github/workflows/ci-cd-production.yml | 32 ++++++++++++++++++++++++++ src/index.html | 24 ++++++++++++++++--- 2 files changed, 53 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/ci-cd-production.yml diff --git a/.github/workflows/ci-cd-production.yml b/.github/workflows/ci-cd-production.yml new file mode 100644 index 0000000..bc7c3ba --- /dev/null +++ b/.github/workflows/ci-cd-production.yml @@ -0,0 +1,32 @@ +# git ftp init -u "${{ vars.PRODUCTION_FTP_USERNAME }}" -p "${{ secrets.PRODUCTION_FTP_PASSWORD }}" "${{ vars.PRODUCTION_FTP_HOST }}" +# git ftp push --force -b main --user "${{ vars.PRODUCTION_FTP_USERNAME }}" --passwd "${{ secrets.PRODUCTION_FTP_PASSWORD }}" "${{ vars.PRODUCTION_FTP_HOST }}" +# git ftp push -vv --auto-init --insecure --changed-only -f -b main --user "${{ vars.PRODUCTION_FTP_USERNAME }}" --passwd "${{ secrets.PRODUCTION_FTP_PASSWORD }}" "${{ vars.PRODUCTION_FTP_HOST }}" + +name: FTP Deploy Source Code + +on: + push: + branches: [ "master" ] + +jobs: + main: + name: Deploy to Production + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: 📂 NPM Install and Build + run: | + npm install + npm run build + + - name: 📂 Sync files + uses: SamKirkland/FTP-Deploy-Action@v4.3.4 + with: + server: ftp.misterprada.com + local-dir: ./dist/ + server-dir: /morph.misterprada.com/ + username: ${{ vars.PRODUCTION_FTP_USERNAME }} + password: ${{ secrets.PRODUCTION_FTP_PASSWORD }} diff --git a/src/index.html b/src/index.html index 2e7cadb..168600d 100644 --- a/src/index.html +++ b/src/index.html @@ -6,8 +6,26 @@ 3d-app-template + + + + + + + +
@@ -28,7 +46,7 @@
-

Egorov Agency

+

Mister & Prada

@@ -36,11 +54,11 @@

Creative Developers

-

Motion Design

+

Egorov Agency

-

Contact Us

+

Challenge 006