fix: Update deploy workflow to solve Node version error #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🚀 Deploy website to cPanel | |
on: | |
push: | |
paths: | |
- "docs/**" | |
pull_request: | |
paths: | |
- "docs/**" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🚚 Get latest code | |
uses: actions/checkout@v3 | |
- name: 🔨 Use Node.js 16 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "16" | |
- name: 📂 Sync files | |
uses: SamKirkland/[email protected] | |
with: | |
server: ${{ secrets.FTP_PUB_SERVER }} | |
username: ${{ secrets.FTP_PUB_USERNAME }} | |
password: ${{ secrets.FTP_PUB_PASSWORD }} | |
local-dir: docs/ | |
server-dir: / |