Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit c206473

Browse files
committed
update github workflow file
1 parent 3a23b7f commit c206473

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/build-application.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
cabalcache: ['true']
2121
env:
2222
ARTIFACT_BUCKET: kadena-cabal-cache
23-
ARTIFACT_FOLDER: test-miner
23+
ARTIFACT_FOLDER: chainweb-mining-client
2424

2525
steps:
2626

@@ -70,41 +70,41 @@ jobs:
7070
- name: Install build dependencies
7171
run: cabal v2-build --only-dependencies
7272
- name: Build
73-
run: cabal v2-build test-miner
73+
run: cabal v2-build chainweb-mining-client
7474

7575
# Publish Artifacts
7676
- name: Prepare artifacts
7777
run: |
7878
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
8181
cp README.md artifacts/applications
8282
cp CHANGELOG.md artifacts/applications
8383
cp LICENSE artifacts/applications
84-
cp test-miner.cabal artifacts/applications
84+
cp chainweb-mining-client.cabal artifacts/applications
8585
cp cabal.project artifacts/applications
8686
cp cabal.project.freeze artifacts/applications
8787
- name: Strip Binary
88-
run: strip artifacts/applications/test-miner
88+
run: strip artifacts/applications/chainweb-mining-client
8989
- name: Safe artifacts
9090
uses: actions/upload-artifact@v2
9191
with:
92-
name: test-miner.${{ matrix.ghc }}.${{ matrix.os }}
92+
name: chainweb-mining-client.${{ matrix.ghc }}.${{ matrix.os }}
9393
path: artifacts/applications
9494

9595
# Publish to S3
9696
- name: Define S3 locations
9797
if: always()
9898
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"
102102
103103
# Publish artifacts to S3
104104
- name: Publish to S3
105105
run: |
106106
aws --version
107-
tar -C ./artifacts/applications/ -czf $BINFILE test-miner
107+
tar -C ./artifacts/applications/ -czf $BINFILE chainweb-mining-client
108108
echo "aws s3 cp $BINFILE s3://$ARTIFACT_BUCKET/$ARTIFACT_FOLDER/"
109109
aws --debug s3 cp "$BINFILE" "s3://$ARTIFACT_BUCKET/$ARTIFACT_FOLDER/"
110110
echo "aws s3api put-object-acl --bucket $ARTIFACT_BUCKET --key=$ARTIFACT_FOLDER/$BINFILE --acl public-read"

0 commit comments

Comments
 (0)