Skip to content

Commit 96c76f7

Browse files
committed
gh-pages
1 parent ae6a4e6 commit 96c76f7

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/build_web.yaml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- master
77

8+
permissions:
9+
contents: write
10+
811
jobs:
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

0 commit comments

Comments
 (0)