From 2d74aee02f8922b7464280ffa4a1982d62595aba Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 5 Dec 2022 09:47:26 -0300 Subject: [PATCH] automatically build and release for many platforms. --- .github/workflows/release.yml | 37 +++++++++++++++++++++++++++++++++++ main.go | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..87ca059 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +name: build for all platforms + +on: + push: + tags: + - '*' + +permissions: + contents: write + +jobs: + make-release: + runs-on: ubuntu-latest + steps: + - uses: actions/create-release@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + build-all-for-all: + runs-on: ubuntu-latest + needs: + - make-release + strategy: + matrix: + goos: [linux, freebsd, openbsd] + goarch: [arm, amd64, arm64] + steps: + - uses: actions/checkout@v3 + - uses: wangyoucao577/go-release-action@v1.30 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + goversion: "1.18" + overwrite: true diff --git a/main.go b/main.go index 2028877..12c3001 100644 --- a/main.go +++ b/main.go @@ -18,7 +18,7 @@ import ( func main() { p := plugin.Plugin{ Name: "invoicewithdescriptionhash", - Version: "v1.3", + Version: "v1.4", Options: []plugin.Option{}, RPCMethods: []plugin.RPCMethod{ {