Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 47 additions & 47 deletions .github/workflows/release-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,56 +23,56 @@ jobs:
exit 1
fi

check_sync:
name: Verify Branch Sync
runs-on: ubuntu-latest
needs: check_branch
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
# check_sync:
# name: Verify Branch Sync
# runs-on: ubuntu-latest
# needs: check_branch
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# with:
# fetch-depth: 0

- name: Fetch both branches
run: |
git fetch origin main prod
# - name: Fetch both branches
# run: |
# git fetch origin main prod

- name: Check if prod is ancestor of main
id: check_ancestor
run: |
COMMAND="git merge-base --is-ancestor origin/prod origin/main"
if $COMMAND; then
echo "βœ… main is in sync with prod"
echo "sync_status=ok" >> $GITHUB_OUTPUT
else
echo "❌ main is NOT in sync with prod"
echo "sync_status=out_of_sync" >> $GITHUB_OUTPUT
fi
# - name: Check if prod is ancestor of main
# id: check_ancestor
# run: |
# COMMAND="git merge-base --is-ancestor origin/prod origin/main"
# if $COMMAND; then
# echo "βœ… main is in sync with prod"
# echo "sync_status=ok" >> $GITHUB_OUTPUT
# else
# echo "❌ main is NOT in sync with prod"
# echo "sync_status=out_of_sync" >> $GITHUB_OUTPUT
# fi

- name: Comment on PR if out of sync
if: ${{ steps.check_ancestor.outputs.sync_status == 'out_of_sync' }}
uses: actions/github-script@v7
with:
script: |
const body = `
⚠️ **Sync Check Failed**
# - name: Comment on PR if out of sync
# if: ${{ steps.check_ancestor.outputs.sync_status == 'out_of_sync' }}
# uses: actions/github-script@v7
# with:
# script: |
# const body = `
# ⚠️ **Sync Check Failed**

The \`main\` branch is **not in sync** with \`prod\`.
# The \`main\` branch is **not in sync** with \`prod\`.

Please run the following locally to fix it:
\`\`\`bash
git fetch origin main prod
git checkout main
git merge --ff-only origin/prod || git merge origin/prod --strategy=ours -m "Sync main with prod"
git push origin main
\`\`\`
# Please run the following locally to fix it:
# \`\`\`bash
# git fetch origin main prod
# git checkout main
# git merge --ff-only origin/prod || git merge origin/prod --strategy=ours -m "Sync main with prod"
# git push origin main
# \`\`\`

After syncing, re-run this workflow or update the PR.
`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body
});
core.setFailed("main is out of sync with prod");
# After syncing, re-run this workflow or update the PR.
# `;
# github.rest.issues.createComment({
# issue_number: context.issue.number,
# owner: context.repo.owner,
# repo: context.repo.repo,
# body
# });
# core.setFailed("main is out of sync with prod");
9 changes: 0 additions & 9 deletions Todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,3 @@
- [ ] wrap the text in `code-preview`/`code-renderer` in the `pre` tag.
- [ ] the side bar in the doc which show the break point for the headings should slice the text and show the first line of the heading.
- [ ] update the eslint rule for `unused-vars` to `error` and fix all the issues.

---

### SEO

- [x] create `sitemap.xml` and `robots.txt`.
- [x] Add specific metadata to the landing page.
- [x] Add specific metadata to MDX pages.
- [x] Review and update `site.ts` and ensure all the information is accurate and complete. The `fallbackURL` should be updated to the production URL.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aether-ui",
"version": "0.1.9",
"version": "0.1.10",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
Expand Down
4 changes: 3 additions & 1 deletion src/config/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ export const metaConfig = ({
card: "summary_large_image",
images: [
{
url: `/meta?title=${encodeURIComponent(title)}&description=${encodeURIComponent(description)}`,
url: isRoot
? siteConfig.bgImage
: `${siteConfig.url}/meta?title=${encodeURIComponent(title)}&description=${encodeURIComponent(description)}`,
width: 1200,
height: 630,
alt: title + " Banner",
Expand Down