Skip to content

Commit

Permalink
Set up continuous integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Oct 7, 2024
1 parent f6b33e4 commit 2046b76
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
patreon: whitequark
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
on:
push:
branches:
- main
tags:
- v*
pull_request:
merge_group:
name: CI
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: v20.x
- name: Install dependencies
run: npm install
- name: Package extension
run: npm run package
- name: Upload package artifact
uses: actions/upload-artifact@v4
with:
name: package
path: '*.vsix'
publish:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
steps:
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: v20.x
- name: Install VSCE
run: npm install -g @vscode/vsce
- name: Download package artifact
uses: actions/download-artifact@v4
with:
name: package
- name: Publish package
run: vsce publish -i *.vsix
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 comments on commit 2046b76

Please sign in to comment.