forked from vitessio/vitess
-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (46 loc) · 1.28 KB
/
create_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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# This creates a {tar.gz,deb,rpm} file and uploads it to a release.
# To trigger this, create a new release.. but make sure that you publish
# it immediately and do not save it as a DRAFT.
name: Release
on:
release:
types: [created]
permissions: read-all
jobs:
build:
name: Create Release
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
<<<<<<< HEAD
go-version: 1.22.5
=======
go-version: 1.22.5
>>>>>>> c60a5ea6b3 ([release-19.0] Upgrade the Golang version to `go1.22.5` (#16322))
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '18.16.0'
- name: Tune the OS
run: |
sudo sysctl -w net.ipv4.ip_local_port_range="22768 65535"
- name: Check out code
uses: actions/checkout@v4
- name: Get dependencies
run: |
sudo apt-get update
sudo apt-get install -y make ruby ruby-dev
go mod download
sudo gem install fpm
- name: Make Packages
run: |
./tools/make-release-packages.sh
- name: Upload Files
uses: csexton/release-asset-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
pattern: "releases/*.{tar.gz,rpm,deb}"