Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add runtime to prerelease and release assets
  • Loading branch information
keenbytes committed Dec 7, 2022
commit b637c76bfcaa136fa83c72391b516b7c5610f7a7
15 changes: 15 additions & 0 deletions .github/workflows/deploy-mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,28 @@ jobs:
run: |
aws s3 cp ${{ env.S3BUCKET_URL }}/${{ S3BUCKET_FILE }} ${{ env.S3BUCKET_FILE }}

- name: S3 CI | Download release runtime from S3 bucket
shell: bash
env:
S3BUCKET_URL: s3://${{ secrets.CI_MAINNET_S3BUCKET_NAME }}/builds/aleph-node/commits/${{ steps.get_branch.outputs.sha_short }}/aleph-runtime
S3BUCKET_FILE: aleph-runtime-${{ steps.get_branch.outputs.sha_short }}.tar.gz
run: |
aws s3 cp ${{ env.S3BUCKET_URL }}/${{ S3BUCKET_FILE }} ${{ env.S3BUCKET_FILE }}

- name: RELEASE ASSET | Add binary to the release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
aleph-node-${{ steps.get_branch.outputs.sha_short }}.tar.gz

- name: RELEASE ASSET | Add runtime to the release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
aleph-runtime-${{ steps.get_branch.outputs.sha_short }}.tar.gz

- name: GIT | Checkout aleph-apps repo
uses: actions/checkout@master
with:
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/deploy-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,28 @@ jobs:
run: |
aws s3 cp ${{ env.S3BUCKET_URL }}/${{ S3BUCKET_FILE }} ${{ env.S3BUCKET_FILE }}

- name: S3 CI | Download release runtime from S3 bucket
shell: bash
env:
S3BUCKET_URL: s3://${{ secrets.CI_MAINNET_S3BUCKET_NAME }}/builds/aleph-node/commits/${{ steps.get_branch.outputs.sha_short }}/aleph-runtime
S3BUCKET_FILE: aleph-runtime-${{ steps.get_branch.outputs.sha_short }}.tar.gz
run: |
aws s3 cp ${{ env.S3BUCKET_URL }}/${{ S3BUCKET_FILE }} ${{ env.S3BUCKET_FILE }}

- name: RELEASE ASSET | Add binary to the release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
aleph-node-${{ steps.get_branch.outputs.sha_short }}.tar.gz

- name: RELEASE ASSET | Add runtime to the release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
aleph-runtime-${{ steps.get_branch.outputs.sha_short }}.tar.gz

- name: GIT | Checkout aleph-apps repo
uses: actions/checkout@master
with:
Expand Down