Skip to content

Added a Troubleshooting Guide to main branch #81

Added a Troubleshooting Guide to main branch

Added a Troubleshooting Guide to main branch #81

Workflow file for this run

name: Tagging
on:
push:
branches:
- main
jobs:
tag:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up python
uses: actions/setup-python@v7
with:
python-version: '3.14'
- name: Install dependencies
run: pip install toml # Install toml package to read pyproject.toml
- name: Get version from pyproject.toml
id: get_version
run: |
VERSION=$(python -c "import toml; print(toml.load('pyproject.toml')['project']['version'])")
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Create Tag
run: |
# Fetch all tags to ensure we have the latest tag information
git fetch --tags
if [[ -z $(git tag -l "$VERSION") ]]; then
echo "Creating new tag: $VERSION"
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git tag -a "$VERSION" -m "Release version $VERSION"
git push origin "$VERSION" || echo "Failed to push tag, it might already exist"
else
echo "Tag $VERSION already exists. Skipping tag creation."
fi
# List all tags for verification
echo "Current tags:"
git tag --list