File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,12 +39,19 @@ jobs:
3939 prerelease : false
4040 body : " Description of the release"
4141
42+ - name : Set asset path and name
43+ run : |
44+ echo "ASSET_PATH=./cache-everything-${GITHUB_REF_NAME}.zip" >> $GITHUB_ENV
45+ echo "ASSET_NAME=cache-everything-${GITHUB_REF_NAME}.zip" >> $GITHUB_ENV
46+ env :
47+ GITHUB_REF_NAME : ${{ env.GITHUB_REF_NAME }}
48+
4249 - name : Upload Release Asset
4350 uses : actions/upload-release-asset@v1
44- env :
45- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4651 with :
4752 upload_url : ${{ steps.create_release.outputs.upload_url }}
48- asset_path : ./cache-everything-${GITHUB_REF_NAME}.zip
49- asset_name : cache-everything-${GITHUB_REF_NAME}.zip
53+ asset_path : ${{ env.ASSET_PATH }}
54+ asset_name : ${{ env.ASSET_NAME }}
5055 asset_content_type : application/zip
56+ env :
57+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments