Skip to content

Commit

Permalink
ci: deploy to staging with action
Browse files Browse the repository at this point in the history
  • Loading branch information
neopostmodern committed Oct 10, 2023
1 parent 01650d7 commit 8e6aec8
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build and deploy staging
on: push
jobs:
build:
name: Build static Nuxt.js page and deploy to staging server via FTP
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node (picks up version from volta)
uses: actions/setup-node@v3
with:
node-version-file: 'package.json'
- name: Install dependencies
run: npm ci
- name: Build static Nuxt.js site
run: npx nuxi generate
- name: Deploy via SFTP
uses: wlixcc/[email protected]
with:
local_path: .output/public/*
remote_path: .
server: ngcobalt395.manitu.net
port: 23
username: ftp200026136
password: ${{ secrets.FTP_PASSWORD }}
sftp_only: true

0 comments on commit 8e6aec8

Please sign in to comment.