diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e0ab57..f62cbb6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,12 +22,6 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - - name: Get version from tag - id: tag_name - run: | - echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v} - shell: bash - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 @@ -43,6 +37,10 @@ jobs: python -m pip install --upgrade pip pip install hatch hatchling + - name: Set version from tag + run: | + hatch version "${GITHUB_REF#refs/tags/v}" + - name: build documentation run: | hatch run docs:build