Skip to content

Commit

Permalink
only deploy after e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
obalaribe committed Sep 19, 2024
1 parent aa9320e commit 7697542
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions .github/workflows/avail-light-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,25 +89,6 @@ jobs:
name: ${{ matrix.output_name }}
path: target/${{ matrix.rust_target }}/maxperf/${{ matrix.output_name }}.tar.gz

binary_publish:
needs: [build]
runs-on: ubuntu-20.04
steps:
- uses: actions/download-artifact@v4
with:
path: binaries
pattern: avail-light*
merge-multiple: true

- name: publish binaries
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.PAT_TOKEN }}
file: /home/runner/work/avail-light/avail-light/binaries/avail-light*
release_name: ${{ github.ref_name }}
tag: ${{ github.ref_name }}
overwrite: true
file_glob: true


compatibility_tests:
Expand Down Expand Up @@ -139,8 +120,28 @@ jobs:
env:
RUST_BACKTRACE: 1

binary_publish:
needs: [compatibility_tests]
runs-on: ubuntu-20.04
steps:
- uses: actions/download-artifact@v4
with:
path: binaries
pattern: avail-light*
merge-multiple: true

- name: publish binaries
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.PAT_TOKEN }}
file: /home/runner/work/avail-light/avail-light/binaries/avail-light*
release_name: ${{ github.ref_name }}
tag: ${{ github.ref_name }}
overwrite: true
file_glob: true

trigger_deploy_workflow:
needs: [binary_publish]
needs: [compatibility_tests]
runs-on: ubuntu-20.04
steps:
- name: Trigger repository_dispatch for release
Expand All @@ -155,7 +156,7 @@ jobs:
# build avail image and publish to dockerhub
docker_build_push:
needs: [binary_publish]
needs: [compatibility_tests]
runs-on: ubuntu-20.04
steps:
- name: Checkout
Expand Down

0 comments on commit 7697542

Please sign in to comment.