Skip to content

Commit 7efd25b

Browse files
committed
legacy
1 parent bb37ead commit 7efd25b

1 file changed

Lines changed: 4 additions & 34 deletions

File tree

.github/workflows/pages.yml

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -32,43 +32,13 @@ jobs:
3232
cache-dependency-path: site/package-lock.json
3333

3434
- name: Install Dependencies
35-
run: |
36-
# Remove package-lock.json to force a fresh install
37-
rm -f package-lock.json
38-
# Install dependencies with legacy peer deps flag
39-
npm install --legacy-peer-deps
35+
run: npm install --legacy-peer-deps
4036

4137
- name: Build
4238
run: npm run docs:build
4339

44-
- name: Setup file structure
40+
- name: Debug file structure
4541
run: |
46-
# Ensure dirs exist
47-
mkdir -p docs/pages
48-
49-
# Create index.mdx if it doesn't exist
50-
if [ ! -f docs/pages/index.mdx ]; then
51-
echo '# s3u - AWS S3 Upload Utility
52-
53-
A lightweight, powerful tool for uploading, organizing, and managing files in Amazon S3 buckets.
54-
55-
## Features
56-
57-
- Easy file uploads to S3
58-
- Image optimization
59-
- CloudFront integration
60-
- Simple command-line interface
61-
62-
## Installation
63-
64-
```bash
65-
pip install s3u
66-
```
67-
68-
[View on GitHub](https://github.com/danhilse/s3u)' > docs/pages/index.mdx
69-
fi
70-
71-
# Debug file structure
7242
echo "==== Current directory structure ===="
7343
find . -type d | sort
7444
echo "==== Files in docs/pages ===="
@@ -82,7 +52,7 @@ pip install s3u
8252
- name: Upload Artifact
8353
uses: actions/upload-pages-artifact@main
8454
with:
85-
path: ./dist
55+
path: site/dist # Changed from docs/dist to site/dist
8656

8757
deploy:
8858
environment:
@@ -93,4 +63,4 @@ pip install s3u
9363
steps:
9464
- name: Deploy to GitHub Pages
9565
id: deployment
96-
uses: actions/deploy-pages@v4
66+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)