Commit dd0887c 1 parent 26f8d67 commit dd0887c Copy full SHA for dd0887c
File tree 1 file changed +33
-0
lines changed
1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Upload Release .deb
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ jobs :
8
+ eb :
9
+ name : Upload Release .deb
10
+ runs-on : ubuntu-latest
11
+ permissions :
12
+ contents : write
13
+ packages : write
14
+ actions : read
15
+ steps :
16
+ - name : Get cdt.deb
17
+ id : getter
18
+ uses : AntelopeIO/asset-artifact-download-action@v3
19
+ with :
20
+ owner : ${{github.repository_owner}}
21
+ repo : ${{github.event.repository.name}}
22
+ file : cdt_.*_amd64.deb
23
+ target : ${{github.sha}}
24
+ artifact-name : cdt_ubuntu_package_amd64
25
+ wait-for-exact-target : true
26
+ - run : |
27
+ curl -LsSf \
28
+ -H "Accept: application/vnd.github+json" \
29
+ -H "Authorization: Bearer ${{github.token}}" \
30
+ -H "X-GitHub-Api-Version: 2022-11-28" \
31
+ -H "Content-Type: application/octet-stream" \
32
+ --data-binary "@${{steps.getter.outputs.downloaded-file}}" \
33
+ "https://uploads.github.com/repos/${{github.repository}}/releases/${{github.event.release.id}}/assets?name=${{steps.getter.outputs.downloaded-file}}"
You can’t perform that action at this time.
0 commit comments