9797 needs : test
9898 runs-on : ubuntu-latest
9999 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
100+ permissions :
101+ contents : write
102+ actions : read
100103
101104 steps :
102105 - name : Checkout code
@@ -171,7 +174,9 @@ jobs:
171174 if : steps.version-check.outputs.version_changed == 'true'
172175 run : |
173176 npm run package
174- vsce package --no-dependencies
177+ vsce package --no-dependencies --out ai-commit-generator-${{ steps.version-check.outputs.current_version }}.vsix
178+ ls -la *.vsix
179+ echo "VSIX file created: ai-commit-generator-${{ steps.version-check.outputs.current_version }}.vsix"
175180
176181 - name : Publish to Visual Studio Marketplace
177182 if : steps.version-check.outputs.version_changed == 'true'
@@ -180,12 +185,18 @@ jobs:
180185 run : |
181186 vsce publish --pat $VSCE_PAT --no-dependencies
182187
188+ - name : Create Git Tag
189+ if : steps.version-check.outputs.version_changed == 'true'
190+ run : |
191+ git config --local user.email "[email protected] " 192+ git config --local user.name "GitHub Action"
193+ git tag v${{ steps.version-check.outputs.current_version }}
194+ git push origin v${{ steps.version-check.outputs.current_version }}
195+
183196 - name : Create GitHub Release
184197 if : steps.version-check.outputs.version_changed == 'true'
185198 id : create-release
186199 uses : softprops/action-gh-release@v2
187- env :
188- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
189200 with :
190201 tag_name : v${{ steps.version-check.outputs.current_version }}
191202 name : Release v${{ steps.version-check.outputs.current_version }}
@@ -194,7 +205,7 @@ jobs:
194205
195206 ### π¦ Installation
196207 - Install from [VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=DTDucas.ai-commit-generator)
197- - Or download the `.vsix` file from this release
208+ - Or download the `.vsix` file from this release and install via `code --install-extension filename.vsix`
198209
199210 ### π Links
200211 - [Repository](https://github.com/${{ github.repository }})
@@ -203,10 +214,17 @@ jobs:
203214
204215 ### π Changelog
205216 See [README.md](https://github.com/${{ github.repository }}/blob/main/README.md#changelog) for detailed changes.
217+
218+ ### π Features
219+ - π€ **Dual AI Support**: Google Gemini & AWS Bedrock
220+ - β¨ **Smart Analysis**: Analyzes staged git changes
221+ - π **Strict Format**: Conventional commits with emojis
222+ - π― **VSCode Integration**: Source Control panel button
223+ - βοΈ **JSON Configuration**: Workspace-specific settings
206224 draft : false
207225 prerelease : false
208226 files : |
209- ./ ai-commit-generator-${{ steps.version-check.outputs.current_version }}.vsix
227+ ai-commit-generator-${{ steps.version-check.outputs.current_version }}.vsix
210228
211229 - name : Send Discord notification - Success
212230 if : steps.version-check.outputs.version_changed == 'true' && success()
0 commit comments