Skip to content

Added more unit tests for the EnumTextConverter class. #9

Added more unit tests for the EnumTextConverter class.

Added more unit tests for the EnumTextConverter class. #9

name: Sync master to gh-pages
on:
push:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v4
- name: Switch to gh-pages
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
# Fetch all branches from the remote
git fetch origin
# Check if the gh-pages branch exists on the remote
if git ls-remote --exit-code --heads origin gh-pages; then
# If it exists, check it out
git checkout gh-pages
git pull origin gh-pages
else
# If it doesn't exist, create it
git checkout --orphan gh-pages
git rm -rf . # Remove all files to start with a clean branch
git commit --allow-empty -m "Initial commit on gh-pages"
git push origin gh-pages
fi
# Merge master into gh-pages
git merge master --allow-unrelated-histories --no-edit
git push origin gh-pages