diff --git a/.github/workflows/docker-build-publish.yml b/.github/workflows/docker-build-publish.yml
index 65396c7eb..d5f1a24b4 100644
--- a/.github/workflows/docker-build-publish.yml
+++ b/.github/workflows/docker-build-publish.yml
@@ -41,14 +41,32 @@ jobs:
if: github.ref == 'refs/heads/master'
id: determine_bump
run: |
- labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name' || echo "")
- if echo "$labels" | grep -q 'breaking-change'; then
+ # Step 1: Check if the PR has a label (priority over commit message)
+ pr_number=$(gh pr list --state merged --base master --limit 1 --json number --jq '.[0].number')
+ echo "PR Number: $pr_number"
+ labels=$(gh pr view "$pr_number" --json labels --jq '.labels[].name' || echo "")
+ if echo "$labels" | grep -q 'major'; then
bump="major"
- elif echo "$labels" | grep -q 'feature\|enhancement'; then
+ elif echo "$labels" | grep -q 'minor'; then
bump="minor"
- else
+ elif echo "$labels" | grep -q 'patch'; then
bump="patch"
fi
+ # Step 2: If no label, fallback to commit message keywords
+ if [ -z "$bump" ]; then
+ last_commit_msg=$(git log -1 --pretty=%B)
+ echo "Last commit message: $last_commit_msg"
+
+ if echo "$last_commit_msg" | grep -iq '#major'; then
+ bump="major"
+ elif echo "$last_commit_msg" | grep -iq '#minor'; then
+ bump="minor"
+ elif echo "$last_commit_msg" | grep -iq '#patch'; then
+ bump="patch"
+ else
+ bump="patch" # Default to patch if no keyword or label
+ fi
+ fi
echo "bump=$bump" >> $GITHUB_ENV
echo "Version bump type: $bump"
env:
diff --git a/README.md b/README.md
index aed0866a7..c5cf69098 100644
--- a/README.md
+++ b/README.md
@@ -1,15 +1,19 @@
# BookLore
+
+
+
+
BookLore is a self-hosted web app for organizing and managing your personal book collection. It provides an intuitive interface to browse, read, and track your progress across PDFs and eBooks. With robust metadata management, multi-user support, and a sleek, modern UI, BookLore makes it easy to build and explore your personal library.
-
+
> ⚠️ **Warning:**
> This project is in early development by a sole developer. Expect bugs, missing features, and frequent changes.
> **Data Loss Risk:** Non-backwards compatible database changes may result in loss of metadata, such as book titles, authors, and reading progress. Your actual book files (PDFs and ePubs) are unlikely to be affected, but it's always a good idea to keep a backup of both your database and your book files.
> **Limited Support:** As this is a one-person project, support may be slow, and features could be experimental or incomplete. Contributions and feedback are welcome!
-## Key Features
+## ✨ Key Features
- **Modern, Responsive UI** – A sleek, highly reactive, and fluent interface for a seamless reading experience.
- **Organized Book Management** – Categorize books using Libraries and Shelves for better organization.
- **Smart Metadata Handling** – Automatically fetch book details from sources like Goodreads, Amazon, and Google Books, or edit them manually.
@@ -19,7 +23,7 @@ BookLore is a self-hosted web app for organizing and managing your personal book
BookLore is perfect for self-hosters who want complete control over their digital library. Stay tuned for updates!
-## Video Guides & Tutorials
+## 🎥 Video Guides & Tutorials
For a step-by-step walkthrough, check out the official BookLore video guides on YouTube:
@@ -27,7 +31,7 @@ For a step-by-step walkthrough, check out the official BookLore video guides on
These videos cover deployment, configuration, and feature highlights to help you get started quickly.
-## Deploy with Docker
+## 🐳 Deploy with Docker
You can quickly set up and run BookLore using Docker.
@@ -48,7 +52,9 @@ services:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- - MYSQL_ROOT_PASSWORD=your_secure_password # Use a strong password; must match the one in the mariadb service
+ - DATABASE_URL=jdbc:mariadb://mariadb:3306/booklore # Only modify this if you're familiar with JDBC and your database setup
+ - DATABASE_USERNAME=booklore # Must match MYSQL_USER defined in the mariadb container
+ - DATABASE_PASSWORD=your_secure_password # Use a strong password; must match MYSQL_PASSWORD defined in the mariadb container
depends_on:
mariadb:
condition: service_healthy
@@ -66,7 +72,10 @@ services:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- - MYSQL_ROOT_PASSWORD=your_secure_password # Use a strong password; must match the one in the booklore service
+ - MYSQL_ROOT_PASSWORD=super_secure_password # Use a strong password for the database's root user, should be different from MYSQL_PASSWORD
+ - MYSQL_DATABASE=booklore
+ - MYSQL_USER=booklore # Must match DATABASE_USERNAME defined in the booklore container
+ - MYSQL_PASSWORD=your_secure_password # Use a strong password; must match DATABASE_PASSWORD defined in the booklore container
volumes:
- /your/local/path/to/mariadb/config:/config
restart: unless-stopped
@@ -107,14 +116,50 @@ Password: admin123
> ⚠️ **Important:**
> You’ll be prompted to change the default password upon your first login to ensure better security.
-## Tech Stack
+## 🔧 Configuration
-- **Backend:** Spring Boot (Java)
-- **Frontend:** Angular (TypeScript)
-- **Database:** MariaDB
-- **Containerization:** Docker & Docker Compose
+The following environment variables can be configured:
-## License
+| Variable Name | Description | Default Value |
+|-------------------|---------------------------|---------------------------------------------------------------------|
+| DATABASE_URL | JDBC connection URL | `jdbc:mariadb://${DATABASE_HOST}:${DATABASE_PORT}/${DATABASE_NAME}` |
+| DATABASE_HOST | Database hostname | `mariadb` |
+| DATABASE_PORT | Database port | `3306` |
+| DATABASE_NAME | Database name | `booklore` |
+| DATABASE_USERNAME | Database username for app | `root` |
+| DATABASE_PASSWORD | Database password for app | **required** |
+
+## 🤝 Community & Support
+
+- 🐞 Found a bug? [Open an issue](https://github.com/adityachandelgit/BookLore/issues)
+- ✨ Want to contribute? [Check out CONTRIBUTING.md](https://github.com/adityachandelgit/BookLore/blob/master/CONTRIBUTING.md)
+- 💬 Ask questions or share feedback: [Discussions](https://github.com/adityachandelgit/BookLore/discussions)
+
+## 👨💻 Contributors & Developers
+
+Thanks to all the amazing people who contribute to Booklore.
+
+[](https://github.com/adityachandelgit/BookLore/graphs/contributors)
+
+## ⭐ Star History
+
+[](https://star-history.com/#adityachandelgit/BookLore&Date&theme=dark)
+
+## 💖 Support the Project
+
+If you find BookLore helpful, consider ⭐ starring the repo!
+
+## 🧰 Tech Stack
+
+