Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yomero243 committed Dec 4, 2024
2 parents 0908989 + 5f776e7 commit 2e0a1f5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 30 deletions.
31 changes: 12 additions & 19 deletions .cpanel.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
---
deployment:
tasks:
- export DEPLOYPATH=/home/annygabr/repositories/wedding-website/
- /bin/cp -R css $DEPLOYPATH
- /bin/cp -R js $DEPLOYPATH
- /bin/cp -R img $DEPLOYPATH
- /bin/cp -R sass $DEPLOYPATH
- /bin/cp -R .github $DEPLOYPATH
- /bin/cp -R .idx $DEPLOYPATH
- /bin/cp index.html $DEPLOYPATH
- /bin/cp manifest.json $DEPLOYPATH
- /bin/cp site.webmanifest $DEPLOYPATH
- /bin/cp browserconfig.xml $DEPLOYPATH
- /bin/cp .nojekyll $DEPLOYPATH
- /bin/cp CNAME $DEPLOYPATH
- /bin/cp gulpfile.js $DEPLOYPATH
- /bin/cp package.json $DEPLOYPATH
- /bin/cp README.md $DEPLOYPATH
- /bin/cp -R node_modules/animate.css $DEPLOYPATH/node_modules/
- /bin/cp -R node_modules/font-awesome $DEPLOYPATH/node_modules/
- /bin/cp -R node_modules/waypoints $DEPLOYPATH/node_modules/
# 1. Define el directorio de despliegue
- export DEPLOYPATH=/home1/annygabr/repositories/wedding-website

# 2. Instala las dependencias con npm
- npm install

# 3. Ejecuta gulp para compilar los assets
- gulp

# 4. Copia todos los archivos del proyecto al directorio de despliegue
- /bin/cp -R * $DEPLOYPATH
14 changes: 3 additions & 11 deletions .github/workflows/npm-gulp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,24 @@ on:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
id-token: write # This is required for requesting the JWT
contents: write # This is required for actions/checkout

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Build
run: |
npm install
gulp
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 2e0a1f5

Please sign in to comment.