diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1bda202..e87db1d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,9 @@ on: push: branches: [main] +env: + MAJOR_VER: 0 + MINOR_VER: 0 jobs: build_zip: runs-on: ubuntu-latest @@ -12,10 +15,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Get the latest tag - id: get_tag - run: echo "latest_tag=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV - - name: Zip the extension file run: zip -qq -r markdown-tools.zip ./markdown-tools working-directory: . @@ -35,7 +34,7 @@ jobs: - name: Release uses: softprops/action-gh-release@v2 with: - tag_name: ${{ env.latest_tag }} + tag_name: v${{ env.MAJOR_VER }}.${{ env.MINOR_VER }}.${{ github.run_number }} token: ${{ secrets.ACCESS_TOKEN }} files: | ext/markdown-tools.zip \ No newline at end of file