From 53f3baf34ad5fe5886d87e92b76e8b9a8f3f97bf Mon Sep 17 00:00:00 2001 From: Shritesh Jamulkar Date: Thu, 23 Nov 2023 20:21:19 +0000 Subject: [PATCH] Edited release workflow --- .github/workflows/release.yml | 6 +++--- pyproject.toml | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6176ee0..4755123 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,12 +1,11 @@ name: 🆙 Release on: - push: + release: branches: - master - main - tags: ['v[0-9].[0-9]+.[0-9]+'] - release: + tags: [ 'v[0-9].[0-9]+.[0-9]+' ] types: [ published ] jobs: @@ -14,6 +13,7 @@ jobs: name: Deploy environment: Deployment runs-on: ubuntu-latest + if: github.event_name == 'release' && github.event.action == 'created' steps: - uses: actions/checkout@v3 diff --git a/pyproject.toml b/pyproject.toml index 3f9c54f..82feb4b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -104,6 +104,12 @@ django_settings_module = "testproject.settings" requires = ["poetry>=0.12"] build-backend = "poetry.masonry.api" +[tool.autopub] +git-username = "shritesh99" +git-email = "shritesh.sj@gmail.com" +project-name = "strawberry-django-social-auth" +append-github-contributor = true + [tool.ruff] line-length = 100 select = ["E", "F", "ERA", "I"]