-
Notifications
You must be signed in to change notification settings - Fork 29
57 lines (50 loc) · 1.78 KB
/
Copy pathrelease.yml
File metadata and controls
57 lines (50 loc) · 1.78 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
# Copyright (c) 2026 Santander Group
# SPDX-License-Identifier: Apache-2.0
#
# Release packaging. ralph-vault-skill is distributed as an agent skill + CLI
# (installed by copying into a skills/ directory or via install.sh), not as a
# PyPI package. On a published GitHub Release this workflow builds a versioned
# tarball of the skill and attaches it to the release as a downloadable asset.
#
# Replace action references with SHA digests before publishing.
name: Release
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
jobs:
archive:
name: Build + attach skill archive
runs-on: ubuntu-latest
permissions:
contents: write # required to upload the release asset
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Build skill archive
run: |
set -euo pipefail
NAME="ralph-vault-skill-${GITHUB_REF_NAME:-dev}"
mkdir -p dist
tar --exclude-vcs \
--exclude='./dist' \
--exclude='./tests' \
--exclude='./.github' \
--exclude='__pycache__' \
--exclude='.pytest_cache' \
--exclude='.coverage*' \
-czf "dist/${NAME}.tar.gz" .
(cd dist && sha256sum "${NAME}.tar.gz" > "${NAME}.tar.gz.sha256")
ls -l dist
- name: Upload archive as workflow artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: skill-archive
path: dist/
- name: Attach archive to the GitHub Release
if: github.event_name == 'release'
env:
GH_TOKEN: ${{ github.token }}
run: gh release upload "${GITHUB_REF_NAME}" dist/* --clobber