From ff549d8a933a0ba30e3db6a8856e83e6214d36ca Mon Sep 17 00:00:00 2001 From: Matthew <16270955+MatthewC@users.noreply.github.com> Date: Sat, 31 Dec 2022 20:03:02 -0500 Subject: [PATCH] rolled back release.yml --- .github/workflows/deploy.yml | 3 +++ .github/workflows/release.yml | 14 +++++--------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 755a0c7..14fc085 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,6 +3,7 @@ on: [push] jobs: test: runs-on: ubuntu-latest + name: Test CopyCat steps: - uses: actions/checkout@v3 - name: Set up Go @@ -19,6 +20,7 @@ jobs: DUMMY_REGION: ${{ secrets.TESTING_REGION }} conditional_check: runs-on: ubuntu-latest + name: Conditional check outputs: src_changed: ${{ steps.check_file_changed.outputs.src_changed }} steps: @@ -67,6 +69,7 @@ jobs: deploy: runs-on: ubuntu-latest needs: [build] + name: Deploy CopyCat if: needs.conditional_check.outputs.src_changed == 'True' steps: - name: Download copycat build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ab82e0..338a020 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,17 +1,13 @@ name: Create release -on: [push] +on: + push: + tags: + - "v*" jobs: release: runs-on: ubuntu-latest steps: - - name: Wait for build to succeed - uses: lewagon/wait-on-check-action@v1.2.0 - with: - ref: main - check-name: "Build binaries" - repo-token: ${{ secrets.GITHUB_TOKEN }} - wait-interval: 10 - - name: Download copycat build + - name: Download latest copycat build uses: dawidd6/action-download-artifact@v2 with: workflow: deploy.yml