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