Skip to content

Commit 1eb5178

Browse files
chore: add release workflow placeholder (VSIX + Docker Hub)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 557b52b commit 1eb5178

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Node
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Compile
25+
run: npm run compile
26+
27+
- name: Package VSIX
28+
run: npx vsce package --no-dependencies
29+
30+
- name: Get version from tag
31+
id: version
32+
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
33+
34+
- name: Create GitHub Release
35+
uses: softprops/action-gh-release@v2
36+
with:
37+
tag_name: ${{ github.ref_name }}
38+
name: v${{ steps.version.outputs.VERSION }}
39+
files: "*.vsix"
40+
generate_release_notes: true
41+
42+
- name: Log in to Docker Hub
43+
uses: docker/login-action@v3
44+
with:
45+
username: ${{ secrets.DOCKERHUB_USERNAME }}
46+
password: ${{ secrets.DOCKERHUB_TOKEN }}
47+
48+
- name: Build and push Docker image
49+
uses: docker/build-push-action@v5
50+
with:
51+
context: .
52+
push: true
53+
tags: |
54+
pitronot/debuggingai:latest
55+
pitronot/debuggingai:${{ steps.version.outputs.VERSION }}

0 commit comments

Comments
 (0)