From 2d1de562d4e48ff93d542eb70c31a3bcebb90609 Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Wed, 18 Mar 2020 17:29:05 -0700 Subject: [PATCH] Adds release to github --- .github/workflows/deploy.yml | 19 ++++++++++++++++++- .github/workflows/push.yml | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c1572da3..a7a7006e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,7 +21,7 @@ jobs: - name: Install Go uses: actions/setup-go@v1 with: - go-version: "1.14.x" + go-version: 1.14.x - name: Checkout code uses: actions/checkout@v2 - name: Test @@ -44,3 +44,20 @@ jobs: run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} - name: Run Buildx run: make publish + release: + needs: [buildx] + name: Create Release + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Create Release + id: create_release + uses: actions/create-release@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 6c28fa3c..1889a60a 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -18,7 +18,7 @@ jobs: - name: Install Go uses: actions/setup-go@v1 with: - go-version: "1.14.x" + go-version: 1.14.x - name: Checkout code uses: actions/checkout@v2 - name: Test