Bump version to 2.0.1 #75
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run compile | |
- name: Package | |
run: npm run package | |
- name: Get version from tag | |
id: get_version | |
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | |
- name: Get latest tag | |
id: get_latest_tag | |
run: | | |
LATEST_TAG=$(git describe --tags --abbrev=0) | |
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV | |
- name: Get changelog | |
id: get_changelog | |
run: | | |
CHANGELOG=$(git log --pretty=format:"- %s" $(git describe --tags --abbrev=0 HEAD^)..HEAD) | |
echo "CHANGELOG<<EOF" >> $GITHUB_ENV | |
echo "$CHANGELOG" >> $GITHUB_ENV | |
echo "EOF" >> $GITHUB_ENV | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Commit Sage _${LATEST_TAG}_ | |
body: | | |
## What's Changed | |
${{ env.CHANGELOG }} | |
## Installation | |
[Download from Marketplace](https://marketplace.visualstudio.com/items?itemName=VizzleTF.commitsage) | |
Join our [community chat](https://t.me/gemini_commit) for discussions and support! | |
#vscode #commitsage #update #git #ai #gemini #developer #tools #llm | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./commitsage-${{ env.VERSION }}.vsix | |
asset_name: commitsage-${{ env.VERSION }}.vsix | |
asset_content_type: application/octet-stream | |
- name: Publish to Visual Studio Marketplace | |
run: npx vsce publish -p ${{ secrets.VSCE_PAT }} | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} |