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 a7df4c5
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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: Install lftp
run: sudo apt install lftp
- 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 with lftp
uses: pressidium/lftp-mirror-action@v1
with:
host: ngcobalt395.manitu.net
port: 23
user: ftp200026136
pass: ${{ secrets.FTP_PASSWORD }}
# lftp settings
onlyNewer: true
settings: 'sftp:auto-confirm=yes'
# Mirror command options
localDir: '.output/public'
remoteDir: '.'
reverse: true

0 comments on commit a7df4c5

Please sign in to comment.