-
-
Notifications
You must be signed in to change notification settings - Fork 598
65 lines (56 loc) · 1.76 KB
/
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
57
58
59
60
61
62
63
64
65
name: release
on:
push:
tags:
- '*'
jobs:
release:
name: Release with Go ${{ matrix.go-version }}
environment: release
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.23.2]
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- uses: bufbuild/buf-setup-action@v1
with:
version: "1.34.0"
- name: Checkout code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Set up Docker buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build DEB and RPM packages
run: misc/scripts/release_package.sh
env:
STATS_ENDPOINT: ${{ secrets.STATS_ENDPOINT }}
STATS_TOKEN: ${{ secrets.STATS_TOKEN }}
- name: Release on Github
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --rm-dist --release-notes=misc/release/notes.md
env:
# note custom secret here since we need access to Centrifugo Homebrew repo.
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
STATS_ENDPOINT: ${{ secrets.STATS_ENDPOINT }}
STATS_TOKEN: ${{ secrets.STATS_TOKEN }}
- name: Release on Packagecloud
env:
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
run: misc/scripts/release_packagecloud.sh
- uses: bufbuild/buf-push-action@v1
with:
buf_token: ${{ secrets.BUF_TOKEN }}