Merge pull request #5 from ouassimBenMosbah/development #2
Workflow file for this run
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: | |
tags: | |
- "v*" # Triggers when a version tag (eg: v1.0.0) is pushed. | |
name: π Deploy website on tag push to OVH FTP | |
jobs: | |
web-deploy: | |
name: π Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Get latest code | |
uses: actions/checkout@v4 | |
- name: Use Node.js 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- name: Install Yarn | |
run: corepack enable && corepack prepare [email protected] --activate | |
- name: π¨ Build Project | |
run: | | |
yarn | |
yarn build --configuration production | |
- name: Deploy to FTP server | |
uses: SamKirkland/[email protected] | |
with: | |
server: ${{ secrets.FTP_SERVER }} | |
username: ${{ secrets.FTP_USERNAME }} | |
password: ${{ secrets.FTP_PASSWORD }} | |
local-dir: dist/ | |
server-dir: /www/ |