Skip to content

Commit 2046b76

Browse files
committed
Set up continuous integration.
1 parent f6b33e4 commit 2046b76

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
patreon: whitequark

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
tags:
6+
- v*
7+
pull_request:
8+
merge_group:
9+
name: CI
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check out source code
15+
uses: actions/checkout@v4
16+
- name: Set up Node
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: v20.x
20+
- name: Install dependencies
21+
run: npm install
22+
- name: Package extension
23+
run: npm run package
24+
- name: Upload package artifact
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: package
28+
path: '*.vsix'
29+
publish:
30+
needs: build
31+
runs-on: ubuntu-latest
32+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
33+
steps:
34+
- name: Set up Node
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: v20.x
38+
- name: Install VSCE
39+
run: npm install -g @vscode/vsce
40+
- name: Download package artifact
41+
uses: actions/download-artifact@v4
42+
with:
43+
name: package
44+
- name: Publish package
45+
run: vsce publish -i *.vsix
46+
env:
47+
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 commit comments

Comments
 (0)