Merge pull request #71 from leszekkrol/dependabot/npm_and_yarn/nuxt-3… #168
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
# .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/ |