Skip to content

Update index.html

Update index.html #9

Workflow file for this run

#!/bin/bash
set -e # Exit on error

Check failure on line 3 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 3
# 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!"