Skip to content

Commit

Permalink
rolled back release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewC committed Jan 1, 2023
1 parent 4fcc794 commit ff549d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on: [push]
jobs:
test:
runs-on: ubuntu-latest
name: Test CopyCat
steps:
- uses: actions/checkout@v3
- name: Set up Go
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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
Expand Down

0 comments on commit ff549d8

Please sign in to comment.