Skip to content

Commit

Permalink
Merge pull request #475 from chick-p/ci-pkg-on-tag
Browse files Browse the repository at this point in the history
ci: change trigger workflow_dispatch to tagging
  • Loading branch information
chick-p authored Mar 4, 2024
2 parents 2d33acc + 5ee0ff0 commit f502a7a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/pkg.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: Run release

on:
workflow_dispatch:
inputs:
version:
description: "Version"
required: true
type: string
push:
tags:
- "v*"

permissions:
contents: write
Expand All @@ -28,7 +25,8 @@ jobs:
- name: Package a extention
run: |
npm run pkg
version=$(echo ${{ inputs.version }} | sed -E 's/v([0-9.]+)/\1/')
gh release upload ${{ inputs.version }} vscode-toggle-multilingual-content-"$version".vsix
version=$(echo "${GITHUB_REF_NAME}" | sed -E "s/v([0-9.]+)/\1/")
file=vscode-toggle-multilingual-content-"$version".vsix
gh release create v"$version" "$file" --generate-notes
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit f502a7a

Please sign in to comment.