From 51d0b51af2128edd7e78d6387a63d17b5920ae8d Mon Sep 17 00:00:00 2001 From: Cameron Brown Date: Mon, 28 Oct 2024 13:43:41 -0400 Subject: [PATCH] .github/workflows: Make upload.yaml work with npm/React conversion --- .github/workflows/upload.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) 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