<commit_before>param([string]$buildFolder, [string]$email, [string]$username, [string]$personalAccessToken, [string]$repoName)

Write-Host "- Set config settings...."
git config --global user.email $email
git config --global user.name $username
git config --global push.default matching

Write-Host "- Copy contents of build folder into a static-site folder...."
md ..\static-site
copy-item -path .\build\* -Destination ..\static-site -Recurse

Write-Host "- Clone gh-pages branch...."
cd "$($buildFolder)\..\"
mkdir gh-pages
git clone --quiet --branch=gh-pages https://$($username):$($personalAccessToken)@github.com/$($repoName) .\gh-pages\
cd gh-pages
git status

Write-Host "- Clean gh-pages folder...."
Get-ChildItem -Attributes !r | Remove-Item -Recurse -Force
<commit_msg>publish from dist folder (not build folder)<commit_after>param([string]$buildFolder, [string]$email, [string]$username, [string]$personalAccessToken, [string]$repoName)

Write-Host "- Set config settings...."
git config --global user.email $email
git config --global user.name $username
git config --global push.default matching

Write-Host "- Copy contents of dist folder into a static-site folder...."
md ..\static-site
copy-item -path .\dist\* -Destination ..\static-site -Recurse

Write-Host "- Clone gh-pages branch...."
cd "$($buildFolder)\..\"
mkdir gh-pages
git clone --quiet --branch=gh-pages https://$($username):$($personalAccessToken)@github.com/$($repoName) .\gh-pages\
cd gh-pages
git status

Write-Host "- Clean gh-pages folder...."
Get-ChildItem -Attributes !r | Remove-Item -Recurse -Force

{'fraction_non_alphanumeric': 0.17023959646910466, 'fraction_numerical': 0.0, 'mean_word_length': 4.038095238095238, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6909149', 'n_tokens_mistral': 487, 'n_tokens_neox': 457, 'n_words': 146}