Skip to content

Commit

Permalink
update workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim Fehrs committed Jul 19, 2023
1 parent dd9e64b commit 2ddb3a7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 9 deletions.
41 changes: 33 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,26 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build the binary for ubuntu
- name: Build the binary for ubuntu jammy
run: |
cd node-runner-cli
make output-ubuntu-focal
make output-ubuntu-jammy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Upload generated cli file"
uses: actions/[email protected]
with:
name: ubuntu 22.04
path: "${{ github.workspace }}/node-runner-cli/out/ubuntu/jammy/radixnode"
- name: Build the binary for ubuntu focal
run: |
make output-ubuntu-focal
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Upload generated cli file"
uses: actions/[email protected]
with:
name: ubuntu 20.04
path: "${{ github.workspace }}/node-runner-cli/out/ubuntu/focal/radixnode"

upload-asset-store:
Expand Down Expand Up @@ -119,7 +129,7 @@ jobs:
ls */**
aws s3 cp radixnode s3://${{secrets.ARTIFACT_AWS_BUCKET }}/radixnode/${{env.BRANCH_WITH_COMMIT}}/radixnode-ubuntu-22.04
upload-release:
upload-release-jammy:
runs-on: ubuntu-22.04
if: ${{ github.event_name == 'release' }}
needs:
Expand All @@ -129,18 +139,33 @@ jobs:
uses: actions/download-artifact@v3
with:
name: ubuntu 22.04
- name: Get release
id: get_release
uses: bruceadams/[email protected]
- name: Upload radixcli ubuntu binary
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./radixnode
asset_name: radixnode-ubuntu-22.04
asset_content_type: application/octet-stream
if: ${{ github.event_name == 'release' }}

upload-release-focal:
runs-on: ubuntu-20.04
if: ${{ github.event_name == 'release' }}
needs:
- package_ubuntu_cli
steps:
- name: Download packaged cli
uses: actions/download-artifact@v3
with:
name: ubuntu 20.04
- name: Upload radixcli ubuntu binary
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./radixnode
asset_name: radixnode-ubuntu-22.04
asset_content_type: application/octet-stream
Expand Down
2 changes: 1 addition & 1 deletion node-runner-cli/version/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__= "2.0.rcnet-v2-rc1-2-gd7e7925"
__version__= "2.0.rcnet-v2-rc1-3-gdd9e64b"
__base_version__= "2.0.rcnet-v2-rc1"

0 comments on commit 2ddb3a7

Please sign in to comment.