diff --git a/.github/workflows/on-push-pre-release.yml b/.github/workflows/on-push-pre-release.yml index c0ad2a0..78571ae 100644 --- a/.github/workflows/on-push-pre-release.yml +++ b/.github/workflows/on-push-pre-release.yml @@ -15,7 +15,7 @@ jobs: id: get-tag-name run: echo "tag-name=${GITHUB_REF/refs\/tags\/v/}" - name: Create Release - uses: actions/create-release@v2 + uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: diff --git a/.github/workflows/on-release-publish.yml b/.github/workflows/on-release-publish.yml index ebd57fb..8782984 100644 --- a/.github/workflows/on-release-publish.yml +++ b/.github/workflows/on-release-publish.yml @@ -56,6 +56,9 @@ jobs: steps: - name: Checkout commit uses: actions/checkout@v3 + - name: Get the Git tag name + id: get-tag-name + run: echo "tag-name=${GITHUB_REF/refs\/tags\/v/}" - name: Set up Python id: setup-python uses: actions/setup-python@v3 @@ -64,6 +67,8 @@ jobs: pip install -r ./requirements.txt pip install build - name: Execute build + env: + ROOKIFY_VERSION: ${{ steps.get-tag-name.outputs.tag-name }} run: |- python -m build . - name: Publish package