Skip to content

Commit

Permalink
test deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianBurke committed Nov 6, 2024
1 parent 2ecc7a8 commit 07c55de
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/demo-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,15 @@ jobs:
git commit -m "Update submodule GCWeb" --allow-empty
git pull --rebase origin gh-pages
# Step 6: Deploy Updated Submodule to gh-pages
- name: Dist - Deploy Submodule Updated
uses: ad-m/github-push-action@master
with:
repository: ${{ github.repository_owner }}/GCWeb
directory: ${{ github.workspace }}/gh-pages
branch: gh-pages
github_token: ${{ secrets.GH_PAT }}
# Step 6: Force Push to gh-pages Branch
- name: Force Push to gh-pages
run: |
cd ${{ github.workspace }}/gh-pages
# Pull latest changes to avoid conflicts, if any
git pull origin gh-pages --rebase || true # Ignore errors if rebase fails
# Force push changes to gh-pages
git push origin gh-pages --force
env:
GH_TOKEN: ${{ secrets.GH_PAT }}


0 comments on commit 07c55de

Please sign in to comment.