Skip to content

Update README.md

Update README.md #28

name: Build and deploy
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
name: Build 🏗️
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@main
- name: Set Node.js TLS settings
run: echo "NODE_TLS_REJECT_UNAUTHORIZED=0" >> $GITHUB_ENV
- name: Install dependencies
run: npm install
- name: Build dependencies
run: npx nuxi generate
- name: List directory contents
run: ls -alh
- name: Archive production artifact
uses: actions/upload-artifact@main
with:
name: dist
path: dist
deploy:
name: Deploy 🚀
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@main
- name: Download artifact
uses: actions/download-artifact@main
with:
name: dist
path: dist
- name: List directory contents
run: ls -alh
- name: Synch files to hosting
uses: SamKirkland/[email protected]
with:
server: fabi-online.de
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
port: 21
protocol: ftps
local-dir: dist/
server-dir: /htdocs/fabi-online/
security: loose