Skip to content

Commit

Permalink
update release.yml*5
Browse files Browse the repository at this point in the history
  • Loading branch information
un4gt committed Jun 2, 2024
1 parent 9864466 commit 04a40a3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches: [main]

env:
MAJOR_VER: 0
MINOR_VER: 0
jobs:
build_zip:
runs-on: ubuntu-latest
Expand All @@ -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: .
Expand All @@ -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

0 comments on commit 04a40a3

Please sign in to comment.