-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (51 loc) · 1.56 KB
/
Copy pathrelease.yml
File metadata and controls
53 lines (51 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Release
on:
push:
tags: ["v*"]
jobs:
build-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install build deps
run: python -m pip install --upgrade pip build
- name: Build CLI dist (wheel/sdist)
run: |
python -m build
- name: Build VS Code extension (.vsix)
run: |
cd ide/vscode/understand-first
npm ci || npm install
npx --yes @vscode/vsce package --no-yarn --skip-license
mkdir -p "${GITHUB_WORKSPACE}/dist"
cp *.vsix "${GITHUB_WORKSPACE}/dist/"
- name: Compute VSIX checksum
run: |
cd dist
sha256sum *.vsix > VSIX_SHA256.txt
- name: Prepare release notes
run: |
echo "# Release" > dist/RELEASE_NOTES.md
echo "" >> dist/RELEASE_NOTES.md
echo "## VSIX SHA256" >> dist/RELEASE_NOTES.md
cat dist/VSIX_SHA256.txt >> dist/RELEASE_NOTES.md
- name: Build understanding pack (optional release asset)
continue-on-error: true
run: |
python -m pip install -e ".[dev,examples]"
u pack publish
- name: Upload artifacts
uses: softprops/action-gh-release@v2
with:
body_path: dist/RELEASE_NOTES.md
files: |
dist/*.whl
dist/*.tar.gz
dist/*.vsix
dist/*.zip
dist/VSIX_SHA256.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}