diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml new file mode 100644 index 0000000..a580ee8 --- /dev/null +++ b/.github/workflows/deploy-staging.yml @@ -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" \ No newline at end of file