From b6bf8dcb8de40dbacff47ecdbeec020e3675f9e2 Mon Sep 17 00:00:00 2001 From: GlassOfWhiskey Date: Sun, 24 Apr 2022 23:18:04 +0200 Subject: [PATCH] Bump version to 0.1.0.dev0 --- .github/workflows/github-release.yml | 35 ++++++++++++++++++++++++++++ jupyter_workflow/version.py | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/github-release.yml diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml new file mode 100644 index 0000000..d2d441e --- /dev/null +++ b/.github/workflows/github-release.yml @@ -0,0 +1,35 @@ +name: "Create GitHub Release" +on: + workflow_run: + workflows: + - "Tests" + branches: + - master + types: + - completed +jobs: + release: + runs-on: ubuntu-20.04 + if: ${{ github.event.workflow_run.conclusion == 'success' }} + steps: + - uses: actions/checkout@v2 + - name: "Get Jupyter Workflow version" + run: echo "JF_VERSION=$(cat jupyter_workflow/version.py | grep -oP '(?<=VERSION = \")(.*)(?=\")')" >> $GITHUB_ENV + - name: "Check tag existence" + uses: mukunku/tag-exists-action@v1.0.0 + id: check-tag + with: + tag: ${{ env.JF_VERSION }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: "Create Release" + id: create-release + uses: actions/create-release@v1 + if: ${{ steps.check-tag.outputs.exists == 'false' }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ env.JF_VERSION }} + release_name: ${{ env.JF_VERSION }} + draft: false + prerelease: false \ No newline at end of file diff --git a/jupyter_workflow/version.py b/jupyter_workflow/version.py index c1fad23..d16a2eb 100644 --- a/jupyter_workflow/version.py +++ b/jupyter_workflow/version.py @@ -1 +1 @@ -VERSION = "0.0.37" +VERSION = "0.1.0.dev0"