Skip to content

Merge pull request #72 from leszekkrol/dependabot/npm_and_yarn/nuxt/c… #164

Merge pull request #72 from leszekkrol/dependabot/npm_and_yarn/nuxt/c…

Merge pull request #72 from leszekkrol/dependabot/npm_and_yarn/nuxt/c… #164

Workflow file for this run

# .github/actions/master.yml
name: 🚀 Deploy website on push
# Controls when the workflow will run
on:
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
- name: 🛠 Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: 🔨 Build Project
run: |
npm ci
npm run build
npm run generate
- name: 📂 Sync files
uses: SamKirkland/[email protected]
with:
dangerous-clean-slate: true
server: ${{ secrets.ftp_host }}
username: ${{ secrets.ftp_username }}
password: ${{ secrets.ftp_password }}
local-dir: ./.output/public/
server-dir: ./public_html/