File tree Expand file tree Collapse file tree 3 files changed +38
-10
lines changed Expand file tree Collapse file tree 3 files changed +38
-10
lines changed Original file line number Diff line number Diff line change
1
+ name : " Upload binary file"
2
+ description : " Upload binary file to GitHub releases"
3
+ inputs :
4
+ repo-token :
5
+ required : true
6
+ description : " The secret created for the workflow run"
7
+ file-name :
8
+ required : true
9
+ description : " The file name to be uploaded"
10
+ tag :
11
+ required : false
12
+ description : " The short ref name of the branch or tag that triggered the workflow run."
13
+ default : ${{ github.ref_name }}
14
+ runs :
15
+ using : " composite"
16
+ steps :
17
+ - name : Upload binary
18
+ uses : svenstaro/upload-release-action@v2
19
+ with :
20
+ repo_token : ${{ inputs.repo-token }}
21
+ overwrite : true
22
+ file : ${{ inputs.file-name }}
23
+ asset_name : ${{ inputs.file-name }}
24
+ tag : ${{ inputs.tag }}
Original file line number Diff line number Diff line change @@ -24,12 +24,10 @@ jobs:
24
24
25
25
- name : Upload binary
26
26
if : github.event_name == 'workflow_dispatch'
27
- uses : svenstaro/ upload-release-action@v2
27
+ uses : ./.github/actions/ upload
28
28
with :
29
- repo_token : ${{ secrets.GITHUB_TOKEN }}
30
- overwrite : true
31
- file : libpowersync_x64.so
32
- asset_name : libpowersync_x64.so
29
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
30
+ file-name : libpowersync_x64.so
33
31
tag : ${{ github.ref_name }}
34
32
35
33
build_aarch64 :
51
49
52
50
- name : Upload binary
53
51
if : github.event_name == 'workflow_dispatch'
54
- uses : svenstaro/ upload-release-action@v2
52
+ uses : ./.github/actions/ upload
55
53
with :
56
- repo_token : ${{ secrets.GITHUB_TOKEN }}
57
- overwrite : true
58
- file : libpowersync_aarch64.so
59
- asset_name : libpowersync_aarch64.so
54
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
55
+ file-name : libpowersync_aarch64.so
60
56
tag : ${{ github.ref_name }}
Original file line number Diff line number Diff line change 14
14
15
15
- name : Build binary
16
16
run : bash tool/build_windows.sh x64
17
+
18
+ - name : Upload binary
19
+ if : github.event_name == 'workflow_dispatch'
20
+ uses : ./.github/actions/upload
21
+ with :
22
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
23
+ file-name : powersync_x64.so
24
+ tag : ${{ github.ref_name }}
You can’t perform that action at this time.
0 commit comments