From 01e3ae59aaaacbc3b75e990e929d8c9f3c270836 Mon Sep 17 00:00:00 2001 From: olegfomenko2002 Date: Thu, 23 Nov 2023 16:14:48 +0200 Subject: [PATCH] adding executables build for --- .github/workflows/packages-rc.yml | 34 +++++++++++++++++++++++++++++++ .github/workflows/packages.yml | 34 +++++++++++++++++++++++++++++++ .github/workflows/tag.yml | 1 + 3 files changed, 69 insertions(+) create mode 100644 .github/workflows/packages-rc.yml create mode 100644 .github/workflows/packages.yml diff --git a/.github/workflows/packages-rc.yml b/.github/workflows/packages-rc.yml new file mode 100644 index 00000000..f6596fb8 --- /dev/null +++ b/.github/workflows/packages-rc.yml @@ -0,0 +1,34 @@ +name: Build Rarimo Core executables +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+.rc-[0-9]+' + +permissions: + contents: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - + name: Check branch name + if: !endsWith(github.ref, 'mainnet-beta') + run: exit -1 + - + name: Set up Go + uses: actions/setup-go@v4 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v5 + with: + distribution: goreleaser + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml new file mode 100644 index 00000000..11cab636 --- /dev/null +++ b/.github/workflows/packages.yml @@ -0,0 +1,34 @@ +name: Build Rarimo Core executables +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' + +permissions: + contents: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - + name: Check branch mane + if: !endsWith(github.ref, 'mainnet') + run: exit -1 + - + name: Set up Go + uses: actions/setup-go@v4 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v5 + with: + distribution: goreleaser + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index ab4d6826..b2696a41 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -3,6 +3,7 @@ on: push: tags: - 'v[0-9]+.[0-9]+.[0-9]+' + - 'v[0-9]+.[0-9]+.[0-9]+.rc-[0-9]+' jobs: converge: