Skip to content

Commit 8b4a4eb

Browse files
authored
GitHub Workflow (#1)
1 parent 662cf77 commit 8b4a4eb

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.github/workflows/ghrelease.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Package VSCode Extension and Publish GitHub Release
2+
on:
3+
push:
4+
tags:
5+
- "v[0-9]+.[0-9]+.[0-9]+"
6+
jobs:
7+
packagenrelease:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout repo
11+
uses: actions/checkout@v3
12+
- name: Setup Node.js
13+
uses: actions/setup-node@v3
14+
- name: Install dependencies
15+
run: npm install
16+
- name: Install vsce cli
17+
run: npm install -g @vscode/vsce
18+
- name: Package extension
19+
run: vsce package -o ig1-continue-${{ github.ref_name }}.vsix
20+
- name: Generate Changelog
21+
id: changelog
22+
uses: mindsers/changelog-reader-action@v2
23+
with:
24+
version: ${{ github.ref_name }}
25+
path: ./CHANGELOG.md
26+
- name: Create GitHub release
27+
id: create_release
28+
uses: softprops/action-gh-release@v2
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
with:
32+
tag_name: ${{ github.ref }}
33+
name: ${{ github.ref_name }}
34+
body: ${{ steps.changelog.outputs.changes }}
35+
draft: false
36+
prerelease: false
37+
files: ./ig1-continue-${{ github.ref_name }}.vsix

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
All notable changes to the "ig1-continue" extension will be documented in this file.
44

5-
## [1.0.0] - 2025-05-19
5+
## [v1.0.0] - 2025-05-19
66

77
- Initial release

0 commit comments

Comments
 (0)