8000 create release · codealchemist/alpaca.cpp@1c62e35 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1c62e35

Browse files
committed
create release
1 parent 7e12661 commit 1c62e35

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ jobs:
4141
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
4242
run: |
4343
zip alpaca-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-linux-x64.zip chat
44+
45+
- name: Create release
46+
id: create_release
47+
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
48+
uses: zendesk/action-create-release@v1
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
with:
52+
tag_name: ${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}
4453

4554
- name: Upload release
4655
id: upload_release
@@ -72,11 +81,21 @@ jobs:
7281
run: |
7382
make
7483
84+
7585
- name: Pack artifacts
7686
id: pack_artifacts
7787
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
7888
run: |
7989
zip alpaca-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-mac-x64.zip chat
90+
91+
- name: Create release
92+
id: create_release
93+
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
94+
uses: zendesk/action-create-release@v1
95+
env:
96+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97+
with:
98+
tag_name: ${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}
8099

81100
- name: Upload release
82101
id: upload_release

0 commit comments

Comments
 (0)
0