-
Notifications
You must be signed in to change notification settings - Fork 499
40 lines (32 loc) · 1.09 KB
/
horizon-release.yml
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
name: Horizon release
on:
push:
tags: ['horizon-v*']
jobs:
publish-artifacts:
runs-on: ubuntu-22.04
name: Upload artifacts to GitHub release
steps:
- name: Run deprecation tests
shell: bash
run: |
export VERSION=${GITHUB_REF_NAME#horizon-v}
echo "Searching for \"Action needed in release ${VERSION}\" tags..."
# Negate the result so process exits with 1 if anything found
! egrep -irn -A 1 --include=*.go "Action.+needed.+in.+release:.+$VERSION" ./
- uses: actions/checkout@v2
- uses: ./.github/actions/setup-go
with:
go-version: "1.22"
- name: Check dependencies
run: ./gomod.sh
- name: Build binaries
run: go run ./support/scripts/build_release_artifacts/main.go
- name: Upload binaries to release
uses: svenstaro/upload-release-action@483c1e56f95e88835747b1c7c60581215016cbf2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
file: ./dist/*
file_glob: true
overwrite: true