Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Deploy

Deploy #10

Workflow file for this run

name: Deploy
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- uses: actions/upload-artifact@v3
with:
name: website-build
path: build
retention-days: 5
deploy:
permissions:
contents: write
needs: [ build ]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: website-build
path: website
- name: 📂 Sync files
uses: SamKirkland/[email protected]
with:
server: w01e537f.kasserver.com
username: w01e537f
password: ${{ secrets.ONEWARE_STUDIO_FTP }}
local-dir: website/
server-dir: oneware.studio/