File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 36
36
run : |
37
37
make
38
38
39
+ - name : Pack artifacts
40
+ id : pack_artifacts
41
+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
42
+ run : |
43
+ zip alpaca-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-linux-x64.zip chat
44
+
45
+ - name : Upload release
46
+ id : upload_release
47
+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
48
+ uses : actions/upload-release-asset@v1
49
+ env :
50
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51
+ with :
52
+ upload_url : ${{ steps.create_release.outputs.upload_url }}
53
+ asset_path : .\alpaca-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-linux-x64.zip
54
+ asset_name : alpaca-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-linux-x64.zip
55
+ asset_content_type : application/octet-stream
56
+
39
57
macOS-latest :
40
58
runs-on : macOS-latest
41
59
54
72
run : |
55
73
make
56
74
75
+ - name : Pack artifacts
76
+ id : pack_artifacts
77
+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
78
+ run : |
79
+ zip alpaca-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-mac-x64.zip chat
80
+
81
+ - name : Upload release
82
+ id : upload_release
83
+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
84
+ uses : actions/upload-release-asset@v1
85
+ env :
86
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
87
+ with :
88
+ upload_url : ${{ steps.create_release.outputs.upload_url }}
89
+ asset_path : .\alpaca-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-mac-x64.zip
90
+ asset_name : alpaca-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-mac-x64.zip
91
+ asset_content_type : application/octet-stream
92
+
57
93
windows-latest :
58
94
runs-on : windows-latest
59
95
You can’t perform that action at this time.
0 commit comments