Skip to content

Disable dependabot.yml #33

Disable dependabot.yml

Disable dependabot.yml #33

Workflow file for this run

name: deploy
on:
workflow_dispatch:
push:
branches:
- master
jobs:
web-deploy:
name: πŸŽ‰ Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-versions }}
uses: actions/setup-node@v4
with:
node-version: latest
- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "name=dir::$(npm config get cache)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node-versions }}
- name: Build
run: |
npm ci
npm run prod
- name: πŸ“‚ Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USER }}
password: ${{ secrets.FTP_PASS }}
server-dir: ./www/wp-content/themes/jdd4/