File tree Expand file tree Collapse file tree 2 files changed +12
-22
lines changed Expand file tree Collapse file tree 2 files changed +12
-22
lines changed Original file line number Diff line number Diff line change 1
1
name : Build and Release Service Application
2
-
3
2
on :
4
3
push :
5
4
tags :
8
7
jobs :
9
8
service-app-release :
10
9
runs-on : windows-latest
10
+ permissions :
11
+ contents : write
11
12
steps :
12
13
- uses : actions/checkout@v4
13
14
14
15
- name : Set up Rust
15
16
run : rustup default stable
16
17
17
18
- name : Add cargo-expand
18
- run : cargo install cargo-expand
19
+ uses : taiki-e/install-action@v2
20
+ with :
21
+ tool : cargo-expand
19
22
20
23
- name : Build Safe Stage
21
24
run : |
@@ -29,25 +32,10 @@ jobs:
29
32
working-directory : ./service-app
30
33
31
34
- name : Archive Publish Directory
32
- run : Compress-Archive -Path service-app/ServiceApp/bin/Release/net8.0-windows/publish -DestinationPath service-app_publish .zip
35
+ run : Compress-Archive -Path service-app/ServiceApp/bin/Release/net8.0-windows/publish/* -DestinationPath service-app .zip
33
36
34
37
- name : Create GitHub Release
35
- id : create_release
36
- uses : actions/create-release@v1
37
- env :
38
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38
+ uses : ncipollo/release-action@v1
39
39
with :
40
- tag_name : ${{ github.ref_name }}
41
- release_name : Release ${{ github.ref_name }}
40
+ artifacts : " service-app.zip"
42
41
draft : true
43
- prerelease : false
44
-
45
- - name : Upload Release Assets
46
- uses : actions/upload-release-asset@v1
47
- env :
48
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49
- with :
50
- upload_url : ${{ steps.create_release.outputs.upload_url }}
51
- asset_path : service-app_publish.zip
52
- asset_name : service-app_publish.zip
53
- asset_content_type : application/zip
Original file line number Diff line number Diff line change @@ -29,12 +29,14 @@ jobs:
29
29
30
30
- name : Add cargo-expand
31
31
if : steps.cache-cargo.outputs.cache-hit != 'true'
32
- run : cargo install cargo-expand
32
+ uses : taiki-e/install-action@v2
33
+ with :
34
+ tool : cargo-expand
33
35
34
36
- name : Build Safe Stage
35
37
run : |
36
38
cargo run -p bindings
37
- cargo build --release - F ffi
39
+ cargo build -F ffi
38
40
working-directory : ./safe-stage
39
41
40
42
- name : Build Service Application
You can’t perform that action at this time.
0 commit comments