Skip to content

Commit

Permalink
ci: update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
matteomorlack committed Aug 4, 2024
1 parent aeec0d9 commit 1fc6acd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
git config user.email "[email protected]"
npm run package ${RELEASE_TYPE}
echo "packageFile=$(ls *.vsix)" >> $GITHUB_ENV
echo "version=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_ENV
env:
RELEASE_TYPE: ${{ inputs.releaseType }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -49,17 +50,21 @@ jobs:
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
VSIX_PATH: ${{ env.packageFile }}
- name: Push tag
- name: Push tag and backmerge
if: success() && matrix.os == 'ubuntu-latest'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git chekout master
git merge $TAG_VERSION
git push --tags
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_VERSION: ${{ env.version }}
uses: softprops/action-gh-release@v2
if: success() && matrix.os == 'ubuntu-latest'
with:
files: |
${{ env.packageFile }}
${{ env.packageFile }}
tag_name: ${{ env.version }}

0 comments on commit 1fc6acd

Please sign in to comment.