From 04a40a3a0cb1a64eb1e10e2d4ca4cf7d29c77a3b Mon Sep 17 00:00:00 2001 From: jennier0107 Date: Sun, 2 Jun 2024 19:26:17 +0800 Subject: [PATCH] update release.yml*5 --- .github/workflows/release.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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