Skip to content

Commit

Permalink
via a pre-connection detect real transaction-isolation variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
blylei committed Apr 17, 2024
1 parent a3d2a94 commit 0f94aea
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: release

on:
push:
branches:
- 'main'
# tags:
# - 'v*'
workflow_dispatch:
permissions:
contents: write
env:
GOVERSION: "1.18"
jobs:
release:
name: Build and publish new release
runs-on: ubuntu-latest
steps:
- name: Set up latest Go
uses: actions/setup-go@v2
with:
go-version: 1.*

- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: 1.8.3
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
70 changes: 70 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
before:
hooks:
- go mod tidy

builds:
- id: gh-ost
main: ./go/cmd/gh-ost/main.go
binary: gh-ost
goos:
- linux
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X github.com/frabits/gh-ost/go/cmd/gh-ost/main.AppVersion={{ .Version }}
- -X github.com/frabits/gh-ost/go/cmd/gh-ost/main.GitCommit={{ .Commit }}
archives:

nfpms:
-
id: gh-ost
package_name: gh-ost
file_name_template: "{{ .ConventionalFileName }}"
builds:
- gh-ost
vendor: Github Inc.

homepage: https://github.com/github/gh-ost

maintainer: Frabit Labs

description: |-
The next-gene database automatic platform
license: GPLv3

formats:
- deb
- rpm
bindir: /usr/bin

section: default
rpm:
# RPM specific scripts.
scripts:
summary: The next-gene database automatic platform
group: Unspecified
compression: lzma

deb:
scripts:
triggers:
interest:
- some-trigger-name
activate:
- another-trigger-name
breaks:
- some-package

signature:
type: origin

checksum:
name_template: 'checksum.txt'
snapshot:
name_template: "{{ .Version }}"
release:

0 comments on commit 0f94aea

Please sign in to comment.