Skip to content

Commit

Permalink
update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterPrada committed Dec 10, 2023
1 parent ef7fdee commit ec1c5f4
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci-cd-production.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
server: ftp.misterprada.com
local-dir: ./dist/
server-dir: /morph.misterprada.com/
username: ${{ vars.PRODUCTION_FTP_USERNAME }}
password: ${{ secrets.PRODUCTION_FTP_PASSWORD }}
24 changes: 21 additions & 3 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,26 @@
<title>3d-app-template</title>
<link rel="icon" href="./images/icons/favicon.png" type="image/png">
<link rel="stylesheet" href="./style.css">

<!-- Google Tag Manager -->
<script>(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({'gtm.start': new Date().getTime(), event: 'gtm.js'});
var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-PQNGKVXV');</script>
<!-- End Google Tag Manager -->
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PQNGKVXV"
height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->

<!-- Pre-Loader Start-->
<div id="preloader">
<div class="loader_line"></div>
Expand All @@ -28,19 +46,19 @@
<div class="wrapper">
<div class="smooth">
<section class="section">
<h1>Egorov Agency</h1>
<h1>Mister & Prada</h1>
</section>

<section class="section">
<h2>Creative Developers</h2>
</section>

<section class="section">
<h2>Motion Design</h2>
<h2>Egorov Agency</h2>
</section>

<section class="section">
<h2>Contact Us</h2>
<h2>Challenge 006</h2>
</section>

<section class="section">
Expand Down

0 comments on commit ec1c5f4

Please sign in to comment.