Skip to content

Commit f7c4db2

Browse files
committed
πŸ”§ chore: update GitHub Actions publish workflow
1 parent fe9b8bc commit f7c4db2

1 file changed

Lines changed: 23 additions & 5 deletions

File tree

β€Ž.github/workflows/publish.ymlβ€Ž

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ jobs:
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

Comments
Β (0)