Skip to content

Commit

Permalink
ci: v1.0.0 v.s 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
magicdawn committed Nov 17, 2022
1 parent e4cba84 commit f6b984c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ jobs:
# electron build
- run: pnpm dist:mac

# v1.2.3 -> 1.2.3
- id: github-script
uses: actions/github-script@v6
with:
script: |
const version = context.ref.slice('refs/tags/v'.length)
core.setOutput('version', version)
# use
# - run: echo "${{steps.github-script.outputs.id}}"

# create release & upload to release
- name: Release
uses: softprops/action-gh-release@v1
Expand All @@ -48,4 +59,4 @@ jobs:
fail_on_unmatched_files: true
files: |
./dist/latest-mac.yml
./dist/clash-config-manager-${{ github.ref_name }}-*.*
./dist/clash-config-manager-${{ steps.github-script.outputs.version }}-*.*

0 comments on commit f6b984c

Please sign in to comment.