Skip to content

Commit 6eb5fb0

Browse files
committed
ci: move to maintained create-release action
1 parent f198fb6 commit 6eb5fb0

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

.github/workflows/release.yml

+5-25
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
fetch-tags: false # https://github.com/actions/checkout/issues/1467
2020

21-
- run: git fetch --tags --all --force
21+
- run: git fetch --tags --all --force && git pull origin ${{ github.ref }} --unshallow --force
2222
name: Fetch tags manually as a workaround. See https://github.com/actions/checkout/issues/1467
2323

2424
- name: Install Rust
@@ -42,33 +42,13 @@ jobs:
4242
OUTPUT: CHANGES.md
4343

4444
- name: Create release
45-
id: create_release
46-
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1
45+
uses: softprops/action-gh-release@01570a1f39cb168c169c802c3bceb9e93fb10974 # v2.1.0
4746
env:
4847
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4948
with:
50-
tag_name: ${{ github.event_name == 'workflow_dispatch' && '' || github.ref }}
51-
release_name: Release ${{ github.event_name == 'workflow_dispatch' && 'main' || github.ref }}
5249
draft: true
5350
body: ${{ steps.git-cliff.outputs.content }}
5451
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

Comments
 (0)