Merge pull request #2 from AdaLink-io/MontiMarti-patch-1-1 #17
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
on: | |
push: | |
branches: | |
- main | |
name: "π Deploy website on push" | |
jobs: | |
web-deploy: | |
name: "π Deploy" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "π Get latest code" | |
uses: actions/checkout@v3 | |
- name: "Use Node.js 22" | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
- name: "𧱠Install Tailwind CSS Dependencies" | |
run: | | |
npm install -D tailwindcss postcss autoprefixer | |
npx tailwindcss init -p | |
npm install | |
- name: "π¨ Build Project" | |
run: | | |
npm install | |
npm run build | |
env: | |
CI: "" | |
- name: "π Upload to Cpanel" | |
uses: appleboy/scp-action@master | |
with: | |
host: ${{ secrets.CPANEL_SERVER }} | |
username: ${{ secrets.CPANEL_USERNAME }} | |
port: ${{ secrets.CPANEL_PORT }} | |
key: ${{ secrets.CPANEL_KEY }} | |
passphrase: ${{ secrets.CPANEL_KEY_PASSPHRASE }} | |
target: ${{ secrets.CPANEL_TARGET }} | |
source: "./build/*" |