diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 30c9002..19bf46d 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -263,3 +263,23 @@ jobs: # run: | # echo "${{ steps.deploy_worker.outputs.url }}" # echo "${{ steps.deploy_api.outputs.url }}" + + release: + # This job will only run if the PR has been merged (and not closed without merging). + if: "github.event.pull_request.merged == true" + runs-on: ubuntu-latest + needs: [info, deploy] + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Create release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, no need to create your own. + with: + tag_name: ${{ needs.info.outputs.version }} + release_name: ${{ github.event.pull_request.title }} + body: ${{ github.event.pull_request.body }} + draft: false + prerelease: false diff --git a/.github/workflows/shell.yml b/.github/workflows/shell.yml index 89cd570..96753af 100644 --- a/.github/workflows/shell.yml +++ b/.github/workflows/shell.yml @@ -7,12 +7,6 @@ on: image: description: "The URI of the image to run as a container" type: string - environment: - description: "The environment to run the container in" - type: choice - options: - - staging - - production jobs: info: diff --git a/pyproject.toml b/pyproject.toml index ad32715..8796c04 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "exa" -version = "0.1.1" +version = "0.2.0" description = "" authors = ["Tom Clark "] license = "MIT" diff --git a/server/example/urls.py b/server/example/urls.py index 911a0d1..cfcc8f7 100644 --- a/server/example/urls.py +++ b/server/example/urls.py @@ -1,4 +1,6 @@ -from django.urls import re_path +from django.urls import include, re_path -urlpatterns = [] +urlpatterns = [ + re_path(r"", include("django_twined.urls")), +]