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
25 changes: 19 additions & 6 deletions .github/workflows/release-engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,24 @@ jobs:
make_latest: true
generate_release_notes: false

- name: Checkout gh-pages
uses: actions/checkout@v4
with:
ref: gh-pages
path: gh-pages
- name: Setup gh-pages
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
if git fetch origin gh-pages; then
git clone --branch gh-pages --depth 1 https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git gh-pages
else
echo "gh-pages branch not found, initializing..."
mkdir -p gh-pages
cd gh-pages
git init
git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
git checkout -b gh-pages
touch .gitkeep
git add .gitkeep
git commit -m "Initialize gh-pages"
cd ..
fi

- name: Update latest stable JSON
run: |
Expand All @@ -97,5 +110,5 @@ jobs:
echo "No latest.json changes to commit"
else
git commit -m "Update latest stable to v${{ github.event.inputs.version }}"
git push
git push origin gh-pages
fi
23 changes: 18 additions & 5 deletions .github/workflows/update-build-index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,24 @@ jobs:
permissions:
contents: write
steps:
- name: Checkout gh-pages
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: gh-pages
fetch-depth: 1

- name: Setup gh-pages branch
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
if git fetch origin gh-pages; then
git checkout -B gh-pages origin/gh-pages
else
echo "gh-pages branch not found, creating orphan branch..."
git checkout --orphan gh-pages
git rm -rf .
mkdir -p builds
touch builds/.gitkeep
git add builds/.gitkeep
git commit -m "Initialize gh-pages"
fi

- name: Download build manifest artifact
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -154,5 +167,5 @@ jobs:
echo "No changes to commit"
else
git commit -m "Update build index for run ${{ github.event.workflow_run.id }}"
git push
git push origin gh-pages
fi
Loading