Skip to content

Commit d8c10e6

Browse files
committed
Add Memento blogpost and Pages deployment
1 parent ebacb0c commit d8c10e6

29 files changed

Lines changed: 3591 additions & 0 deletions

.github/workflows/static.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Deploy Blogpost Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- blogpost/**
9+
- .github/workflows/static.yml
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
concurrency:
18+
group: pages
19+
cancel-in-progress: true
20+
21+
jobs:
22+
deploy:
23+
environment:
24+
name: github-pages
25+
url: ${{ steps.deployment.outputs.page_url }}
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Check out repository
29+
uses: actions/checkout@v4
30+
31+
- name: Configure GitHub Pages
32+
uses: actions/configure-pages@v5
33+
34+
- name: Build Pages artifact
35+
run: |
36+
set -eu
37+
38+
mkdir -p _site/blogpost
39+
cp blogpost/index.html _site/blogpost/
40+
cp -R blogpost/css _site/blogpost/
41+
cp -R blogpost/figures _site/blogpost/
42+
printf '' > _site/.nojekyll
43+
44+
cat > _site/index.html <<'EOF'
45+
<!DOCTYPE html>
46+
<html lang="en">
47+
<head>
48+
<meta charset="utf-8">
49+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
50+
<meta http-equiv="refresh" content="0; url=./blogpost/">
51+
<title>Memento Blogpost Redirect</title>
52+
<link rel="canonical" href="./blogpost/">
53+
</head>
54+
<body>
55+
<p>Redirecting to <a href="./blogpost/">the Memento blogpost</a>.</p>
56+
</body>
57+
</html>
58+
EOF
59+
60+
- name: Upload Pages artifact
61+
uses: actions/upload-pages-artifact@v3
62+
with:
63+
path: _site
64+
65+
- name: Deploy to GitHub Pages
66+
id: deployment
67+
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)