From 31411d0e95ae17d21685da7ce8558ab9ad26ff67 Mon Sep 17 00:00:00 2001 From: jamesread Date: Wed, 17 Nov 2021 13:43:27 +0000 Subject: [PATCH] The release builder --- .github/workflows/build-tag.yml | 48 +++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/build-tag.yml diff --git a/.github/workflows/build-tag.yml b/.github/workflows/build-tag.yml new file mode 100644 index 0000000..9b04aab --- /dev/null +++ b/.github/workflows/build-tag.yml @@ -0,0 +1,48 @@ +name: "Build Tag" + +on: + push: + tags: + - '*' + +jobs: + build-tag: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: '^1.16.0' + + - name: Login to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_KEY }} + + - name: grpc + run: make grpc + + - name: goreleaser + uses: goreleaser/goreleaser-action@v2 + with: + distribution: goreleaser + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.ACTIONS_DEPLOY_KEY }} + + - name: Archive binaries + uses: actions/upload-artifact@v2 + with: + name: dist + path: dist/OliveTin*.* + + - name: Archive integration tests + uses: actions/upload-artifact@v2 + with: + name: integration-tests + path: integration-tests