Skip to content

Update from https://github.com/equetzal/huronOS-build-tools/commit/58… #61

Update from https://github.com/equetzal/huronOS-build-tools/commit/58…

Update from https://github.com/equetzal/huronOS-build-tools/commit/58… #61

name: Deploy Staging
on:
workflow_dispatch:
push:
branches:
- development
permissions:
contents: write
jobs:
deploy:
name: Deploy Staging
runs-on: ubuntu-latest
steps:
- name: 📡 Get latest code
uses: actions/checkout@v3
- name: 🍔 Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: 🦕 Install Docusaurus
run: yarn install --frozen-lockfile
- name: 🛠️ Build website
run: yarn build
- name: 🪁 Deploy
uses: wlixcc/SFTP-Deploy-Action@v1.2.4
with:
server: ${{ secrets.STAGING_HOST }}
username: ${{ secrets.STAGING_SSH_USERNAME }}
password: ${{ secrets.STAGING_SSH_PASSWORD }}
local_path: './build/*'
remote_path: ${{ secrets.STAGING_DEPLOY_PATH }}
delete_remote_files: true
sftp_only: false