Update index.html #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | ||
set -e # Exit on error | ||
# Step 1: Build Docker Image | ||
echo "Building Docker image..." | ||
docker build -t amharic_dbpedia_chapter . | ||
# Step 2: Run Container | ||
echo "Running Docker container..." | ||
container_id=$(docker run -d amharic_dbpedia_chapter) | ||
# Step 3: Extract Built Files | ||
echo "Extracting built files from container..." | ||
docker cp $container_id:/app/docs/dist/Amharic_DBpedia_Chapter ./docs/dist/Amharic_DBpedia_Chapter | ||
# Step 4: Stop and Remove Container | ||
echo "Stopping and removing container..." | ||
docker rm -f $container_id | ||
# Step 5: Commit and Push Files to main Branch | ||
echo "Pushing built files to the main branch..." | ||
# Add built files to the main branch | ||
git add ./docs/dist/Amharic_DBpedia_Chapter | ||
git commit -m "Deploy Amharic_DBpedia_Chapter to GitHub Pages" | ||
git push origin main | ||
echo "Deployment to main branch complete!" |