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 3657c80
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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
env:
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
run: |
lftp -p 23 -u "ftp200026136,$FTP_PASSWORD" sftp://ngcobalt395.manitu.net -e "lcd .output/public; mirror -R . .; exit"

0 comments on commit 3657c80

Please sign in to comment.