Olivier Demers 85c498584f
All checks were successful
Deploy website / build (push) Successful in 23s
Deploy website / deploy (push) Successful in 18s
it goes to public html by default
2024-07-15 14:00:22 -04:00

49 lines
1.0 KiB
YAML

name: Deploy website
run-name: ${{ gitea.actor }} déploie 🚀
on: [push]
jobs:
build:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm install
- name: NPM build
run: npm run build
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: build
path: 'build/'
overwrite: true
deploy:
needs: build
environment:
name: pls5618.com
url: https://pls5618.com
steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
name: build
path: 'build/'
- name: FTP Deploy
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
with:
server: pls5618.com
username: ${{ secrets.ftp_user }}
password: ${{ secrets.ftp_password }}
local-dir: ./build/