diff --git a/.github/workflows/update_version_on_tag.yml b/.github/workflows/update_version_on_tag.yml deleted file mode 100644 index 0a7eb88..0000000 --- a/.github/workflows/update_version_on_tag.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Update Version and Commit - -on: - push: - tags: - - '*' - -jobs: - update_version: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Get latest tag - id: get_tag - run: | - git fetch --depth=1 origin +refs/tags/*:refs/tags/* - echo "Latest tag: $(git describe --tags $(git rev-list --tags --max-count=1))" >> tag.txt - shell: bash - - - name: Extract version from tag - id: extract_version - run: | - VERSION=$(cat tag.txt | grep -oE "[0-9]+\.[0-9]+\.[0-9]+") - echo "::set-output name=version::$VERSION" - shell: bash - - - name: Update setup.py with new version - run: | - sed -i 's/\(version=\).*/\1"${{ steps.extract_version.outputs.version }}",/' setup.py - shell: bash - - - name: Update docs/conf.py with new version - run: | - sed -i 's/\(release = \)"[^"]*"/\1"${{ steps.extract_version.outputs.version }}"/' docs/conf.py - shell: bash - - - name: Commit on main and push changes - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git checkout main - git add setup.py docs/conf.py - git commit -m "Update version to ${{ steps.extract_version.outputs.version }}" - git push - shell: bash diff --git a/docs/conf.py b/docs/conf.py index 1f91a04..75d98c6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -14,7 +14,7 @@ author = "Carlo Emilio MONTANARI" # The full version, including alpha/beta/rc tags -release = "0.0.4" +release = "0.0.5" # -- General configuration --------------------------------------------------- extensions = [