Skip to content

Commit

Permalink
.github/workflows: Make upload.yaml work with npm/React conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrxyz committed Oct 28, 2024
1 parent c0d6a26 commit 4e5bfb9
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ name: Upload files to navigatoruf.org
# yamllint disable-line rule:truthy
on:
push:
branches:
- main
# branches:
# - main

jobs:
upload:
Expand All @@ -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

Expand All @@ -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 \
Expand Down

0 comments on commit 4e5bfb9

Please sign in to comment.