From 4fe9c98c54b1f73b8bf6114d32f0ae4ca32b50d4 Mon Sep 17 00:00:00 2001 From: Phan Trung Thanh Date: Wed, 14 Feb 2024 16:03:48 +0100 Subject: [PATCH] Remove auto versioning workflow (#20) --- .github/workflows/create_release.yaml | 49 --------------------------- pyproject.toml | 2 +- 2 files changed, 1 insertion(+), 50 deletions(-) delete mode 100644 .github/workflows/create_release.yaml diff --git a/.github/workflows/create_release.yaml b/.github/workflows/create_release.yaml deleted file mode 100644 index 7271d21..0000000 --- a/.github/workflows/create_release.yaml +++ /dev/null @@ -1,49 +0,0 @@ -name: Release a new version of the plugin - -on: - push: - branches: - - main - -jobs: - create-release: - name: Create Github release - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4.1.1 - - name: Set up Python 3.10 - uses: actions/setup-python@v5 - with: - python-version: "3.10" - - - name: Install Poetry - run: | - curl -sSL https://install.python-poetry.org | python - -y - echo "$HOME/.local/bin" >> $GITHUB_PATH - - - name: Bump Version - id: bump-version - run: | - # Bump minor version with poetry - poetry version minor - VERSION=$(poetry version --short) - echo VERSION=${VERSION} >> $GITHUB_ENV - - # Tag the commit with the new version - git tag $VERSION - git push origin $VERSION - - # Push version update in pyproject.toml - git config --global user.name 'IS DevOps Bot' - git config --global user.email 'is-devops-bot@users.noreply.github.com' - git add pyproject.toml - git commit -m "action: bump version to ${VERSION}" - git push - - - name: Create Release - uses: ncipollo/release-action@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - draft: false - tag: ${{ env.VERSION }} - generateReleaseNotes: true diff --git a/pyproject.toml b/pyproject.toml index 432b3ed..b85d554 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,7 +62,7 @@ disable = "wrong-import-order" [tool.poetry] name = "flask-multipass-saml-groups" -version = "0.1.0" +version = "0.2.0" description = "This package provides an identity provider for Flask-Multipass, which allows you to use SAML groups. It is designed to be used as a plugin for Indico." authors = ["launchpad.net/~canonical-is-devops "] license = "Apache-2.0 license"