-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01650d7
commit a7df4c5
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |