Skip to content

Commit

Permalink
Fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
mgubi committed Nov 18, 2024
1 parent 3b8b8ec commit 18b090d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/cd-convert-debian-bookworm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
texmacs_bin=$(which texmacs)
$texmacs_bin -headless -x '(begin (load "notes-tools.scm") (notes-update) (quit))'
- name: Deploy to gh-pages
- name: Commit changes to main and deploy to gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand All @@ -54,7 +54,12 @@ jobs:
# set Git config
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
# commit & push to main
git add --all
git commit -m "CD build"
git push
# init gh-pages branch
git clone --branch ${TARGET_BRANCH} --depth 1 ${REPO_URL} gh-pages || \
(git init gh-pages && cd gh-pages && git checkout --orphan ${TARGET_BRANCH})
Expand All @@ -64,7 +69,7 @@ jobs:
rm -rf *
# copy 'docs'
cp -r ../${BUILD_DIR}/* ./${BUILD_DIR}/.
cp -r ../${BUILD_DIR} .
# copy 'index.html'
cp ../${ROOT_INDEX_FILE} .
Expand Down

0 comments on commit 18b090d

Please sign in to comment.