forked from tlsnotary/tlsn
-
Notifications
You must be signed in to change notification settings - Fork 1
78 lines (66 loc) · 2.28 KB
/
release-binaries.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
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
68
69
70
71
72
73
74
75
76
77
name: Create release
on:
workflow_run:
workflows: [Build binance_prover binaries]
types: [completed]
permissions:
contents: write
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download binance_prover_ubuntu_noble
uses: actions/download-artifact@v4
with:
name: binance_prover_ubuntu_noble
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
- name: Download binance_prover_macos_sonoma
uses: actions/download-artifact@v4
with:
name: binance_prover_macos_sonoma
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
- name: Download binance_prover_macos_sonoma_arm64
uses: actions/download-artifact@v4
with:
name: binance_prover_macos_sonoma_arm64
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
- name: Get current timestamp for tag
id: timestamp
run: echo "tag_name=binance_prover_$(date +'%Y%m%d_%H%M%S')" >> $GITHUB_ENV
- name: Create Git Tag
run: |
git config user.name "github-actions"
git config user.email "[email protected]"
git tag ${{ env.tag_name }}
git push origin ${{ env.tag_name }}
env:
tag_name: ${{ env.tag_name }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.tag_name }}
body: |
- binance_prover_ubuntu_noble
- binance_prover_macos_sonoma
- binance_prover_macos_sonoma_arm64
release_name: "Release ${{ env.tag_name }}"
draft: false
prerelease: false
- name: Show downloaded files
run: ls -R
- name: Upload Release Assets
run: |
gh release upload ${{ env.tag_name }} \
binance_prover_ubuntu_noble \
binance_prover_macos_sonoma \
binance_prover_macos_sonoma_arm64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}