|
20 | 20 | cabalcache: ['true'] |
21 | 21 | env: |
22 | 22 | ARTIFACT_BUCKET: kadena-cabal-cache |
23 | | - ARTIFACT_FOLDER: test-miner |
| 23 | + ARTIFACT_FOLDER: chainweb-mining-client |
24 | 24 |
|
25 | 25 | steps: |
26 | 26 |
|
@@ -70,41 +70,41 @@ jobs: |
70 | 70 | - name: Install build dependencies |
71 | 71 | run: cabal v2-build --only-dependencies |
72 | 72 | - name: Build |
73 | | - run: cabal v2-build test-miner |
| 73 | + run: cabal v2-build chainweb-mining-client |
74 | 74 |
|
75 | 75 | # Publish Artifacts |
76 | 76 | - name: Prepare artifacts |
77 | 77 | run: | |
78 | 78 | mkdir -p artifacts/applications |
79 | | - export VER=$(grep '^version' test-miner.cabal | sed -e 's/.*: *//') |
80 | | - cp $(find dist-newstyle/ -name 'test-miner' -type f) artifacts/applications |
| 79 | + export VER=$(grep '^version' chainweb-mining-client.cabal | sed -e 's/.*: *//') |
| 80 | + cp $(find dist-newstyle/ -name 'chainweb-mining-client' -type f) artifacts/applications |
81 | 81 | cp README.md artifacts/applications |
82 | 82 | cp CHANGELOG.md artifacts/applications |
83 | 83 | cp LICENSE artifacts/applications |
84 | | - cp test-miner.cabal artifacts/applications |
| 84 | + cp chainweb-mining-client.cabal artifacts/applications |
85 | 85 | cp cabal.project artifacts/applications |
86 | 86 | cp cabal.project.freeze artifacts/applications |
87 | 87 | - name: Strip Binary |
88 | | - run: strip artifacts/applications/test-miner |
| 88 | + run: strip artifacts/applications/chainweb-mining-client |
89 | 89 | - name: Safe artifacts |
90 | 90 | uses: actions/upload-artifact@v2 |
91 | 91 | with: |
92 | | - name: test-miner.${{ matrix.ghc }}.${{ matrix.os }} |
| 92 | + name: chainweb-mining-client.${{ matrix.ghc }}.${{ matrix.os }} |
93 | 93 | path: artifacts/applications |
94 | 94 |
|
95 | 95 | # Publish to S3 |
96 | 96 | - name: Define S3 locations |
97 | 97 | if: always() |
98 | 98 | run: | |
99 | | - echo "::set-env name=BINFILE::test-miner.${{ matrix.ghc }}.${{ matrix.os }}.${{ env.GIT_SHA_SHORT }}.tar.gz" |
100 | | - echo "::set-env name=BRANCH_BINFILE::test-miner.${{ matrix.ghc }}.${{ matrix.os }}.${{ env.GIT_REF_SHORT }}.tar.gz" |
101 | | - echo "::set-env name=TAG_BINFILE::test-miner.${{ matrix.ghc }}.${{ matrix.os }}.${{ env.GIT_TAG }}.tar.gz" |
| 99 | + echo "::set-env name=BINFILE::chainweb-mining-client.${{ matrix.ghc }}.${{ matrix.os }}.${{ env.GIT_SHA_SHORT }}.tar.gz" |
| 100 | + echo "::set-env name=BRANCH_BINFILE::chainweb-mining-client.${{ matrix.ghc }}.${{ matrix.os }}.${{ env.GIT_REF_SHORT }}.tar.gz" |
| 101 | + echo "::set-env name=TAG_BINFILE::chainweb-mining-client.${{ matrix.ghc }}.${{ matrix.os }}.${{ env.GIT_TAG }}.tar.gz" |
102 | 102 |
|
103 | 103 | # Publish artifacts to S3 |
104 | 104 | - name: Publish to S3 |
105 | 105 | run: | |
106 | 106 | aws --version |
107 | | - tar -C ./artifacts/applications/ -czf $BINFILE test-miner |
| 107 | + tar -C ./artifacts/applications/ -czf $BINFILE chainweb-mining-client |
108 | 108 | echo "aws s3 cp $BINFILE s3://$ARTIFACT_BUCKET/$ARTIFACT_FOLDER/" |
109 | 109 | aws --debug s3 cp "$BINFILE" "s3://$ARTIFACT_BUCKET/$ARTIFACT_FOLDER/" |
110 | 110 | echo "aws s3api put-object-acl --bucket $ARTIFACT_BUCKET --key=$ARTIFACT_FOLDER/$BINFILE --acl public-read" |
|
0 commit comments