Skip to content

Commit

Permalink
update release.yml*4
Browse files Browse the repository at this point in the history
  • Loading branch information
un4gt committed Jun 2, 2024
1 parent 7365712 commit 9864466
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Release

on:
push:
tags:
- v**
branches: [main]

jobs:
build_zip:
Expand All @@ -13,6 +12,10 @@ 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 @@ -32,6 +35,7 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.release.tag_name }}
tag_name: ${{ env.latest_tag }}
token: ${{ secrets.ACCESS_TOKEN }}
files: |
markdown-tools.zip
ext/markdown-tools.zip

0 comments on commit 9864466

Please sign in to comment.