Skip to content

Commit dca6702

Browse files
committed
ci: upload artifacts to release
1 parent c046290 commit dca6702

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.github/workflows/pkg.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: pkg
33
on:
44
push:
55
tags: '*'
6-
branches: 'master'
76

87
jobs:
98
create-pkg:
@@ -31,3 +30,29 @@ jobs:
3130
with:
3231
name: release
3332
path: app-config-main/pkg/*
33+
34+
- id: create_release
35+
uses: actions/create-release@v1
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
with:
39+
tag_name: ${{ github.ref }}
40+
release_name: Release ${{ github.ref }}
41+
draft: false
42+
prerelease: false
43+
44+
- uses: actions/upload-release-asset@v1
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
with:
48+
upload_url: ${{ steps.create_release.outputs.upload_url }}
49+
asset_path: ./app-config-main/pkg/main-linux
50+
asset_name: app-config-linux
51+
52+
- uses: actions/upload-release-asset@v1
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
with:
56+
upload_url: ${{ steps.create_release.outputs.upload_url }}
57+
asset_path: ./app-config-main/pkg/main-macos
58+
asset_name: app-config-macos

0 commit comments

Comments
 (0)