From 208fbcf93f5443877aa70db5d73258a0c378dd0c Mon Sep 17 00:00:00 2001 From: rmehri01 Date: Wed, 30 Dec 2020 18:15:55 -0700 Subject: [PATCH] Try another fix for github actions --- .github/workflows/cd.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index b4b2249..754ddb9 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -48,9 +48,11 @@ jobs: key: ${{ runner.os }}-stack - name: Build project + id: build_project run: | - stack build --test --copy-bins + stack build --test export STACK_PATH=$(stack path --local-install-root) + echo ::set-output name=ARTIFACT_PATH::$STACK_PATH/bin/thock - name: Upload Release Asset id: upload-release-asset @@ -59,6 +61,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ needs.create_release.outputs.upload_url }} - asset_path: $STACK_PATH/bin/thock + asset_path: ${{ steps.build_project.outputs.ARTIFACT_PATH }} asset_name: thock-${{ runner.os }} asset_content_type: application/octet-stream \ No newline at end of file