Compare commits

...

3 Commits

Author SHA1 Message Date
84e438511f test without runs-on
Some checks failed
Deploy website / build (push) Failing after 5m57s
Deploy website / deploy (push) Has been skipped
2024-07-14 15:38:19 -04:00
ac37b5e869 correct folder name 2024-07-14 15:37:13 -04:00
cea66409ba add action 2024-07-14 15:35:46 -04:00

View File

@ -0,0 +1,42 @@
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: build
run: npm run build
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: 'build/'
overwrite: true
deploy:
needs: build
environment:
name: pls5618.com
url: https://pls5618.com
steps:
- name: deploy
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
with:
server: pls5618.com
username: ${{ secrets.ftp_user }}
password: ${{ secrets.ftp_password }}