use npm for Surfer CLI
Some checks failed
Build and Deploy Hugo Site to Cloudron / build-and-deploy (push) Failing after 51s
Some checks failed
Build and Deploy Hugo Site to Cloudron / build-and-deploy (push) Failing after 51s
This commit is contained in:
@@ -30,18 +30,22 @@ jobs:
|
||||
- name: Build Hugo Site
|
||||
run: hugo --minify -s askkennyb
|
||||
|
||||
# Step 4: Download the standalone Surfer CLI
|
||||
- name: Download Surfer CLI
|
||||
run: |
|
||||
curl -L "https://cloudron.io/surfer-cli/linux/x64/surfer" -o surfer
|
||||
chmod +x surfer
|
||||
# Step 4: (NEW) Set up Node.js
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18 # Use a stable LTS version
|
||||
|
||||
# Step 5: Deploy using the Surfer CLI
|
||||
# This is the simple, direct method you found.
|
||||
# Step 5: (NEW) Install Surfer CLI via npm
|
||||
- name: Install Surfer CLI
|
||||
run: npm install -g surfer-cli
|
||||
|
||||
# Step 6: (MODIFIED) Deploy using the Surfer CLI
|
||||
- name: Deploy to Cloudron Surfer
|
||||
run: |
|
||||
echo "Deploying to ${{ secrets.SURFER_APP_DOMAIN }}..."
|
||||
./surfer put \
|
||||
# We no longer use './surfer' because it's globally installed
|
||||
surfer put \
|
||||
--token ${{ secrets.SURFER_TOKEN }} \
|
||||
--server ${{ secrets.SURFER_APP_DOMAIN }} \
|
||||
./askkennyb/public/* /
|
||||
Reference in New Issue
Block a user