Skip to content

Commit 6d95e15

Browse files
committed
Publish the 1.0 posts at 12:01am Pacific and fix their links
Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
1 parent 7ed6384 commit 6d95e15

6 files changed

Lines changed: 56 additions & 7 deletions
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Jekyll skips posts dated in the future, so a post merged ahead of its date
2+
# only appears with the next deploy after that date. This triggers that deploy.
3+
name: Publish scheduled blog posts
4+
on:
5+
schedule:
6+
# Off the hour: GitHub delays and drops runs most often at :00.
7+
- cron: "5 * * * *"
8+
workflow_dispatch:
9+
concurrency:
10+
group: publish-scheduled-posts
11+
cancel-in-progress: false
12+
jobs:
13+
publish:
14+
name: Deploy when a due post is not live
15+
if: github.repository == 'documentdb/documentdb.github.io'
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 10
18+
permissions:
19+
contents: read
20+
# Lets GITHUB_TOKEN start the deploy; its pushes would not.
21+
actions: write
22+
steps:
23+
- name: Checkout source
24+
uses: actions/checkout@v7
25+
- name: Setup Ruby
26+
uses: ruby/setup-ruby@v1
27+
with:
28+
ruby-version: 3.3
29+
bundler-cache: true
30+
- name: Build blogs
31+
run: npm run build:blogs
32+
- name: Start a deploy if any built post is missing from the site
33+
env:
34+
GH_TOKEN: ${{ github.token }}
35+
run: |
36+
set -euo pipefail
37+
missing=()
38+
for dir in out/blogs/posts/*/; do
39+
slug=$(basename "$dir")
40+
# Only a definite 404 counts; a network error or 5xx retries next hour.
41+
code=$(curl -s -o /dev/null -w '%{http_code}' "https://documentdb.io/blogs/posts/$slug/")
42+
if [ "$code" = 404 ]; then missing+=("$slug"); fi
43+
done
44+
if [ ${#missing[@]} -eq 0 ]; then
45+
echo "Every published post is live."
46+
exit 0
47+
fi
48+
echo "Due but not live: ${missing[*]}"
49+
gh workflow run continuous-deployment.yml --ref main

‎blogs/_posts/2026-03-19-meet-documentdb-kubernetes-operator.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Meet the DocumentDB Kubernetes Operator
33
description: Preview an open-source operator that brings declarative deployment, secure connectivity, high availability, backup and restore, and automated multi-cloud deployment to DocumentDB on Kubernetes.
44
date: 2026-03-19
5-
featured: true
5+
featured: false
66
author: DocumentDB team
77
category: documentdb-blog
88
tags:

‎blogs/_posts/2026-09-10-linux-packages.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Linux packages for DocumentDB: start simple, keep control"
33
description: Install DocumentDB on Linux with apt or dnf and guided setup. Start with the complete stack, use your own local PostgreSQL, or install only the extension.
44
date: 2026-09-10
5-
featured: true
5+
featured: false
66
author: DocumentDB team
77
category: documentdb-blog
88
tags:

‎blogs/_posts/2026-10-01-versioning.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Long-term support or development? An explanation of DocumentDB's versioning"
33
description: A comparison of DocumentDB's long-term support, development, and release-candidate builds
44
date: 2026-10-01
5-
featured: true
5+
featured: false
66
author: DocumentDB team
77
category: documentdb-blog
88
tags:

‎blogs/_posts/2026-10-16-documentdb-for-vs-code-1-0.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "DocumentDB for VS Code 1.0: Run It Locally, Bring Your Data"
33
description: The free, open-source DocumentDB GUI for VS Code reaches 1.0. Start DocumentDB Local in a few clicks, bring your data with copy and paste, and understand it with the Cluster Dashboard and Query Insights.
4-
date: 2026-10-16
4+
date: 2026-10-16 00:01:00 -0700
55
featured: true
66
author: Tomasz Naumowicz and the DocumentDB for VS Code team
77
category: documentdb-blog

‎blogs/_posts/2026-10-19-kubernetes-operator-versioning.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "DocumentDB 1.0 on Kubernetes"
33
description: How the DocumentDB Kubernetes Operator helps teams deploy and manage clusters as part of the DocumentDB 1.0 release
4-
date: 2026-10-19
4+
date: 2026-10-19 00:01:00 -0700
55
featured: true
66
author: DocumentDB team
77
category: documentdb-blog
@@ -89,6 +89,6 @@ or contribute. As DocumentDB reaches 1.0, the operator brings its database
8989
capabilities into the Kubernetes workflows your team already uses.
9090

9191
[operator]: https://github.com/documentdb/documentdb-kubernetes-operator
92-
[versioning]: /blogs/posts/versioning/
93-
[installation]: https://documentdb.io/documentdb-kubernetes-operator/latest/preview/getting-started/
92+
[versioning]: {{ '/posts/versioning/' | relative_url }}
93+
[installation]: https://documentdb.io/documentdb-kubernetes-operator/latest/preview/getting-started/before-you-start/
9494
[quickstart]: https://documentdb.io/documentdb-kubernetes-operator/latest/preview/#quickstart

0 commit comments

Comments
 (0)