From 10175799e1c136de77a85af8b6216118149b1542 Mon Sep 17 00:00:00 2001 From: kiloreux Date: Wed, 2 Oct 2019 06:01:42 +0100 Subject: [PATCH] Build on tags also --- .github/workflows/main.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 902325d..31b7b40 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,9 +31,17 @@ jobs: - name: Checkout code uses: actions/checkout@v1 - name: Build TUSD + if: startsWith(github.ref, 'refs/tags/') env: GO111MODULE: on run: ./scripts/build_all.sh + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: tusd_*.* + env: + GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }} - uses: azure/container-actions/docker-login@master with: username: ${{ secrets.DOCKER_USERNAME }} @@ -49,10 +57,3 @@ jobs: ${{ secrets.KUBECONFIG }} with: args: set image --record deployment/tusd tusd=tusproject/tusd:$GITHUB_SHA -n tus - - name: Release - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') - with: - files: tusd_*.* - env: - GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}