diff --git a/.github/workflows/upload.yaml b/.github/workflows/upload.yaml index 1382f16..d71bea0 100644 --- a/.github/workflows/upload.yaml +++ b/.github/workflows/upload.yaml @@ -4,8 +4,8 @@ name: Upload files to navigatoruf.org # yamllint disable-line rule:truthy on: push: - branches: - - main + # branches: + # - main jobs: upload: @@ -15,6 +15,18 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version: 'latest' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build site + run: npm run build && cd dist + - name: Install lftp run: sudo apt-get install -y lftp sshpass @@ -35,7 +47,7 @@ jobs: --exclude='^\..*$' \ --exclude='README.md' \ -R --parallel --verbose \ - . \ + dist \ navigatoruf/htdocs exit EOF