Skip to content

Commit

Permalink
test deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianBurke committed Nov 7, 2024
1 parent 8aa7532 commit ba34767
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/demo-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,20 @@ jobs:
git commit -m "Update submodule GCWeb" --allow-empty
git pull --rebase origin gh-pages || true # Sync with remote, ignore rebase errors
# Step 6: Force Push to gh-pages Branch
# Step 6: Configure Remote with GitHub Token for Authentication
- name: Configure Remote with GitHub Token
run: |
cd ${{ github.workspace }}/gh-pages
# Set the remote URL to use the GitHub token for authentication
git remote set-url origin https://${{ secrets.GH_PAT }}@github.com/${{ github.repository_owner }}/GCWeb.git
# Step 7: Force Push to gh-pages
- name: Force Push to gh-pages
run: |
cd ${{ github.workspace }}/gh-pages
# Repack the repository to avoid any potential issues with large or corrupt objects
git gc --prune=now
git repack -a -d --depth=250 --window=250
# Force push changes to gh-pages with authentication
git push origin gh-pages --force

0 comments on commit ba34767

Please sign in to comment.