18
18
with :
19
19
fetch-tags : false # https://github.com/actions/checkout/issues/1467
20
20
21
- - run : git fetch --tags --all --force
21
+ - run : git fetch --tags --all --force && git pull origin ${{ github.ref }} --unshallow --force
22
22
name : Fetch tags manually as a workaround. See https://github.com/actions/checkout/issues/1467
23
23
24
24
- name : Install Rust
@@ -42,33 +42,13 @@ jobs:
42
42
OUTPUT : CHANGES.md
43
43
44
44
- name : Create release
45
- id : create_release
46
- uses : actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1
45
+ uses : softprops/action-gh-release@01570a1f39cb168c169c802c3bceb9e93fb10974 # v2.1.0
47
46
env :
48
47
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49
48
with :
50
- tag_name : ${{ github.event_name == 'workflow_dispatch' && '' || github.ref }}
51
- release_name : Release ${{ github.event_name == 'workflow_dispatch' && 'main' || github.ref }}
52
49
draft : true
53
50
body : ${{ steps.git-cliff.outputs.content }}
54
51
prerelease : false
55
-
56
- - name : Upload zjstatus wasm file to release
57
- uses : actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
58
- env :
59
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
60
- with :
61
- upload_url : ${{ steps.create_release.outputs.upload_url }}
62
- asset_path : ./target/wasm32-wasip1/release/zjstatus.wasm
63
- asset_name : zjstatus.wasm
64
- asset_content_type : application/octet-stream
65
-
66
- - name : Upload zjframes wasm file to release
67
- uses : actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
68
- env :
69
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
70
- with :
71
- upload_url : ${{ steps.create_release.outputs.upload_url }}
72
- asset_path : ./target/wasm32-wasip1/release/zjframes.wasm
73
- asset_name : zjframes.wasm
74
- asset_content_type : application/octet-stream
52
+ files : |
53
+ ./target/wasm32-wasip1/release/zjstatus.wasm
54
+ ./target/wasm32-wasip1/release/zjframes.wasm
0 commit comments