forked from github/gh-ost
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
via a pre-connection detect real transaction-isolation variable name
- Loading branch information
Showing
2 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
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
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 }} |
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
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: |