add action
This commit is contained in:
parent
3b23cfe2fe
commit
cea66409ba
44
gitea/workflows/deploy.yaml
Normal file
44
gitea/workflows/deploy.yaml
Normal file
@ -0,0 +1,44 @@
|
||||
name: Deploy website
|
||||
run-name: ${{ gitea.actor }} déploie 🚀
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
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:
|
||||
runs-on: ubuntu-latest
|
||||
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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user