File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches :
66 - master
77
8+ permissions :
9+ contents : write
10+
811jobs :
912 build-and-deploy :
1013 runs-on : ubuntu-latest
@@ -57,18 +60,23 @@ jobs:
5760 mkdir -p /tmp/web-build
5861 cp -r build/web/* /tmp/web-build/
5962
60- - name : Create or update web branch
63+ - name : Debug temporary directory
64+ run : |
65+ echo "Temporary directory contents:"
66+ ls -la /tmp/web-build/
67+
68+ - name : Create or update gh-pages branch
6169 run : |
6270 git config --global user.name 'github-actions[bot]'
6371 git config --global user.email 'github-actions[bot]@users.noreply.github.com'
64- git checkout -B web
72+ git checkout -B gh-pages
6573 rm -rf ./*
6674 cp -r /tmp/web-build/* .
6775 git add .
68- git commit -m "Deploy web build" || echo "No changes to commit"
69- git push origin web --force
76+ git commit -m "Deploy web build to gh-pages " || echo "No changes to commit"
77+ git push origin gh-pages --force
7078
71- - name : Debug web branch contents
79+ - name : Debug gh-pages branch contents
7280 run : |
73- echo "Web branch contents after deployment:"
81+ echo "gh-pages branch contents after deployment:"
7482 ls -la
You can’t perform that action at this time.
0 commit comments