v5.3.1 release notes, use go1.22.2 (#796) #55
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.22.2] | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- 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 |