Skip to content

Update index.html

Update index.html #13

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
echo "Building Docker image..."
docker build --progress=plain -t amharic_dbpedia_chapter .
echo "Running Docker container..."
container_id=$(docker run -d amharic_dbpedia_chapter)
trap 'echo "Cleaning up..."; docker rm -f $container_id > /dev/null 2>&1' EXIT
echo "Extracting built files from container..."
mkdir -p ./docs/Amharic_DBpedia_Chapter
docker cp $container_id:/app/Amharic_DBpedia_Chapter ./docs/Amharic_DBpedia_Chapter
echo "Stopping and removing container..."
docker rm -f $container_id > /dev/null 2>&1
echo "Pushing built files to the main branch..."
# Add files to git and commit if there are changes
git add ./docs/Amharic_DBpedia_Chapter
if ! git diff --cached --exit-code > /dev/null; then
git commit -m "Deploy Amharic_DBpedia_Chapter to GitHub Pages"
git push origin main
echo "Deployment to main branch complete!"
else
echo "No changes to commit."
fi