-
Notifications
You must be signed in to change notification settings - Fork 27
39 lines (35 loc) · 1.07 KB
/
releases.yaml
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
name: Release Binaries
on:
push:
branches:
- main
paths:
- 'linux-amd64/**'
- 'linux-arm64/**'
- 'macosx-amd64/**'
- 'macosx-arm64/**'
- 'windows-amd64/**'
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Extract version from filenames
run: |
VERSION=$(ls macosx-amd64 | grep -oP 'v[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -1)
echo "Detected version: $VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Create GitHub Release and upload binaries
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
linux-amd64/zksolc-*${{ env.VERSION }}*
linux-arm64/zksolc-*${{ env.VERSION }}*
macosx-amd64/zksolc-*{{ env.VERSION }}*
macosx-arm64/zksolc-*${{ env.VERSION }}*
windows-amd64/zksolc-*${{ env.VERSION }}*
tag_name: ${{ env.VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}