-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (54 loc) · 1.97 KB
/
release.yml
File metadata and controls
67 lines (54 loc) · 1.97 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
name: Release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Validate tag format
run: |
if [[ ! "$GITHUB_REF_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Tag '$GITHUB_REF_NAME' does not match vX.Y.Z format"
exit 1
fi
env:
GITHUB_REF_NAME: ${{ github.ref_name }}
- name: Package agent
run: |
mkdir -p dist
zip -j dist/reframe-agent.zip .github/agents/reframe.agent.md
cp install.ps1 dist/install.ps1
- name: Generate checksums
run: |
cd dist
sha256sum reframe-agent.zip install.ps1 > checksums.sha256
cat checksums.sha256
- name: Create release
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
with:
tag_name: ${{ github.ref_name }}
name: ReFrame ${{ github.ref_name }}
body: |
See [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/${{ github.ref_name }}/CHANGELOG.md) for full release notes.
## Installation
```powershell
irm https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref_name }}/install.ps1 | iex
```
Or pin to this release tag for a verifiable install:
```powershell
.\install.ps1 -Ref ${{ github.ref_name }}
```
Verify the download against `checksums.sha256` before running — see [SECURITY.md](https://github.com/${{ github.repository }}/blob/${{ github.ref_name }}/SECURITY.md).
files: |
dist/reframe-agent.zip
dist/install.ps1
dist/checksums.sha256
fail_on_unmatched_files: true
draft: false
prerelease: false