-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (53 loc) · 1.79 KB
/
Copy pathrelease-packages.yml
File metadata and controls
59 lines (53 loc) · 1.79 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
name: Release Packages
on:
push:
tags:
- 'v*'
permissions:
contents: write
id-token: write
jobs:
github-release-artifacts:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Build release archives
run: |
set -euo pipefail
VERSION="${GITHUB_REF_NAME:-manual}"
OUT_DIR="out/release"
mkdir -p "${OUT_DIR}"
git archive --format=tar.gz --prefix="a2a-cpp-${VERSION}/" -o "${OUT_DIR}/a2a-cpp-${VERSION}.tar.gz" HEAD
git archive --format=zip --prefix="a2a-cpp-${VERSION}/" -o "${OUT_DIR}/a2a-cpp-${VERSION}.zip" HEAD
(
cd "${OUT_DIR}"
sha256sum "a2a-cpp-${VERSION}.tar.gz" "a2a-cpp-${VERSION}.zip" > SHA256SUMS.txt
)
- name: Publish GitHub release assets (tag pushes)
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v3
with:
files: |
out/release/*.tar.gz
out/release/*.zip
out/release/SHA256SUMS.txt
vcpkg-metadata-check:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Validate vcpkg manifest presence
run: test -f vcpkg.json
- name: Prepare submission metadata artifact
run: |
mkdir -p out
cat > out/vcpkg-submission.md <<'META'
vcpkg public registry submission checklist:
1. Ensure port file + CI baseline in a fork of microsoft/vcpkg.
2. Open PR to vcpkg with port, version, and license metadata.
3. Include upstream tag and SHA512 source hash.
META
- name: Upload vcpkg submission notes
uses: actions/upload-artifact@v6
with:
name: vcpkg-submission-notes
path: out/vcpkg-submission.md