From dd1ea52ff3ef04de3bbbc76690cd500cf46bf4ab Mon Sep 17 00:00:00 2001 From: "Sean E. Russell" Date: Sat, 29 Feb 2020 16:15:28 -0600 Subject: [PATCH] More CI/CD work. Gives up on asset uploads and tries pre-release. --- .github/workflows/{go.yml => build.yml} | 9 +------ .github/workflows/prerelease.yml | 32 +++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 8 deletions(-) rename .github/workflows/{go.yml => build.yml} (68%) create mode 100644 .github/workflows/prerelease.yml diff --git a/.github/workflows/go.yml b/.github/workflows/build.yml similarity index 68% rename from .github/workflows/go.yml rename to .github/workflows/build.yml index 54d72f1..ca4c3b9 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/build.yml @@ -9,14 +9,7 @@ jobs: - name: Checkout uses: actions/checkout@master - - name: Make binaries + - name: Compile uses: xxxserxxx/actions/golang-build@master with: args: darwin/amd64/1 darwin/386/1 linux/amd64 linux/386 linux/arm64 linux/arm7 linux/arm6 linux/arm5 windows/amd64 windows/386 freebsd/amd64 freebsd/386 - env: - COMPRESS_FILES: true - - - uses: actions/upload-artifact@v1 - with: - name: Binaries - path: .release diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml new file mode 100644 index 0000000..c7a8594 --- /dev/null +++ b/.github/workflows/prerelease.yml @@ -0,0 +1,32 @@ +name: Build Go binaries + +on: + push: + tags: + - "v*" + + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + + - name: Make binaries + uses: xxxserxxx/actions/golang-build@master + with: + args: darwin/amd64/1 darwin/386/1 linux/amd64 linux/386 linux/arm64 linux/arm7 linux/arm6 linux/arm5 windows/amd64 windows/386 freebsd/amd64 freebsd/386 + env: + COMPRESS_FILES: true + + - name: Pre-release + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "${{ GITHUB_REF }}" + draft: true + title: "Release candidate" + files: | + .release/*.tgz + .release/*.zip