From 8874ebc7b433a2f32a21e81863005a5807d6c186 Mon Sep 17 00:00:00 2001 From: Nate Gadzhibalaev Date: Sat, 11 Jul 2020 19:49:35 -0700 Subject: [PATCH] Set tag, version, and name for the release specifically. --- .github/workflows/release.yml | 6 +++++- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b258433..113b3a7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,8 @@ jobs: id: build-release run: | poetry build - echo "::set-env name=NOTOMA_RELEASE_TAG:::${{github.ref}}" + echo "::set-env name=NOTOMA_RELEASE_TAG::${{github.ref}}" + echo "::set-env name=NOTOMA_RELEASE_VERSION::${NOTOMA_RELEASE_TAG:1}" echo "::set-env name=NOTOMA_RELEASE_NAME::notoma-${NOTOMA_RELEASE_TAG:1}.tar.gz" echo "::set-env name=NOTOMA_RELEASE_PATH::dist/$NOTOMA_RELEASE_NAME" @@ -50,6 +51,9 @@ jobs: id: release-drafter with: publish: true + tag: ${{ github.ref }} + name: ${{ github.ref }} + version: ${{ env.NOTOMA_RELEASE_VERSION }} # TODO: Add a check for *-pre in tag ref and use that as prerelease: input env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index c411b5b..72c3cf4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "notoma" -version = "0.2.3" +version = "0.2.4" description = "Write and publish your blog articles from Notion." authors = ["Nate Gadzhibalaev "]