diff --git a/.github/workflows/upload.yaml b/.github/workflows/upload.yaml index 1382f16..6893404 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 @@ -31,7 +43,7 @@ jobs: lftp -u mil,${{ secrets.MIL_UFL_SFTP_PASS }} \ -p ${{ secrets.MIL_UFL_SFTP_PORT }} sftp://mil.ufl.edu << EOF mirror -c \ - --include='.*' \ + --include='dist\/.*' \ --exclude='^\..*$' \ --exclude='README.md' \ -R --parallel --verbose \