-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (56 loc) · 2.14 KB
/
Copy pathrelease.yml
File metadata and controls
69 lines (56 loc) · 2.14 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Release
on:
push:
tags:
- "v*"
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true
jobs:
verify-and-release:
name: Verify tag and publish release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Verify RELEASE.json matches tag
run: |
tag="${GITHUB_REF_NAME}"
expected="$(python3 -c 'import json; print(json.load(open("RELEASE.json"))["tag"])')"
if [[ "${tag}" != "${expected}" ]]; then
echo "RELEASE.json tag (${expected}) does not match git tag (${tag})" >&2
exit 1
fi
- name: Install ref resolution tests
run: bash tests/install/test_ref_resolution.sh
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.14"
- name: Install Python workspace
run: uv sync --all-packages
- name: Pack install manifest unit tests
run: uv run --package intentframe-integrations-cli python tests/intentframe_integrations/test_pack_install.py
- name: Hermes integrations CLI unit tests
run: |
uv run --package intentframe-integrations-cli python tests/intentframe_integrations/test_runtime_lifecycle.py
uv run --package intentframe-integrations-cli python tests/intentframe_integrations/test_integration_pack.py
uv run --package intentframe-integrations-cli python tests/intentframe_integrations/test_hermes_install.py
uv run --package intentframe-integrations-cli python tests/hermes_plugin/test_integrate.py
- name: Write release notes
env:
TAG: ${{ github.ref_name }}
run: python3 .github/scripts/write_release_notes.py
- name: Create GitHub Release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create "${GITHUB_REF_NAME}" \
--title "IntentFrame Hermes integration ${GITHUB_REF_NAME}" \
--notes-file release-notes.md