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 51d0b51
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 @@ -35,7 +47,7 @@ jobs:
--exclude='^\..*$' \
--exclude='README.md' \
-R --parallel --verbose \
. \
dist \
navigatoruf/htdocs
exit
EOF

0 comments on commit 51d0b51

Please sign in to comment.