diff --git a/.cpanel.yml b/.cpanel.yml index bba62f58fb..18e5eb9b6c 100644 --- a/.cpanel.yml +++ b/.cpanel.yml @@ -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/ \ No newline at end of file + # 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 diff --git a/.github/workflows/npm-gulp.yml b/.github/workflows/npm-gulp.yml index 37ab714a78..6d04c0d55c 100644 --- a/.github/workflows/npm-gulp.yml +++ b/.github/workflows/npm-gulp.yml @@ -5,10 +5,6 @@ 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: @@ -16,13 +12,13 @@ jobs: 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 }} @@ -30,7 +26,3 @@ jobs: run: | npm install gulp - - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1