-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.14 KB
/
Copy pathrelease.yml
File metadata and controls
42 lines (39 loc) · 1.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
name: release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release-gate:
runs-on: macos-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-python@v7
with:
python-version: '3.11'
- run: bash scripts/bootstrap_runtime.sh
- run: ./scripts/trove-python scripts/check.py release
- name: Require a clean source checkout after release gates
run: git diff --exit-code
- name: Build and verify distribution
shell: bash
run: |
set -euo pipefail
test "$GITHUB_REF_NAME" = "v1.0.0"
./scripts/trove-python scripts/build_distribution.py --out dist
./scripts/trove-python scripts/verify_distribution.py \
--manifest dist/distribution-manifest.json
- name: Create GitHub release
env:
GH_TOKEN: ${{ github.token }}
shell: bash
run: |
set -euo pipefail
gh release create "$GITHUB_REF_NAME" dist/* \
--title "TROVE 1.0.0" \
--notes-file CHANGELOG.md \
--verify-tag