Skip to content

Workaround for nekoweb 404 #20

Workaround for nekoweb 404

Workaround for nekoweb 404 #20

name: Build and Deploy to Nekoweb
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install NVM
run: |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
- name: Install Node.js and build
run: |
chmod +x ./build.sh
./build.sh
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: build
path: ./build
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: build
path: ./build
- name: FTP Deploy
uses: SamKirkland/FTP-Deploy-Action@4.0.0
with:
server: ${{ secrets.FTP_SERVER }}
port: ${{ secrets.FTP_PORT }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
server-dir: /
local-dir: ./build/