Skip to content

Commit 46736ee

Browse files
committed
Fix media copy.
1 parent 8c15e8f commit 46736ee

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

.github/workflows/build-and-deploy.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,27 @@ jobs:
2323
runs-on: ubuntu-latest
2424
container:
2525
image: texlive/texlive:latest
26-
26+
2727
steps:
2828
- name: Checkout repository
2929
uses: actions/checkout@v4
30-
30+
3131
- name: Set up Python
3232
uses: actions/setup-python@v5
3333
with:
34-
python-version: '3.11'
35-
34+
python-version: "3.11"
35+
3636
- name: Install Python dependencies
3737
run: |
3838
python -m pip install --upgrade pip
3939
pip install git+https://github.com/carmiac/openlyric_bookmaker.git
40-
40+
4141
- name: Build songbook
4242
run: |
4343
# Update publish_date to today's date before building
4444
sed -i "s/^publish_date = .*/publish_date = $(date +%Y-%m-%d)/" book_config.toml
4545
python -m openlyric_bookmaker book_config.toml
46-
46+
4747
- name: Create GitHub Pages structure
4848
run: |
4949
mkdir -p gh-pages
@@ -52,7 +52,8 @@ jobs:
5252
# Copy PDFs
5353
mkdir -p gh-pages/pdfs
5454
cp output/pdfs/*.pdf gh-pages/pdfs/ || true
55-
55+
# Copy media
56+
cp -r media gh-pages/
5657
# Add custom theme link to all HTML files
5758
echo "Adding custom theme CSS to HTML files..."
5859
cd gh-pages
@@ -71,10 +72,10 @@ jobs:
7172
done
7273
fi
7374
cd ..
74-
75+
7576
# Rename songbook index to songbook.html and create new landing page
7677
mv gh-pages/index.html gh-pages/songbook.html
77-
78+
7879
# Create landing page as index.html
7980
cat > gh-pages/index.html << 'EOF'
8081
<!DOCTYPE html>
@@ -251,20 +252,20 @@ jobs:
251252
</body>
252253
</html>
253254
EOF
254-
255+
255256
- name: Upload artifact
256257
uses: actions/upload-pages-artifact@v3
257258
with:
258-
path: 'gh-pages'
259-
259+
path: "gh-pages"
260+
260261
deploy:
261262
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
262263
environment:
263264
name: github-pages
264265
url: ${{ steps.deployment.outputs.page_url }}
265266
runs-on: ubuntu-latest
266267
needs: build
267-
268+
268269
steps:
269270
- name: Deploy to GitHub Pages
270271
id: deployment

0 commit comments

Comments
 (0)