Skip to content

Commit f4c8f0b

Browse files
committed
Update release.yml
1 parent b783a9b commit f4c8f0b

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

.github/workflows/release.yml

+6-18
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,10 @@ jobs:
4747
cp -r ./build ./temp/mm_radio/build/
4848
cd ./temp && zip -r ../mm_radio.zip ./mm_radio
4949
50-
- name: Create GitHub Release
51-
id: create_release
52-
uses: actions/create-release@v1
53-
env:
54-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
- name: Create Release
51+
uses: 'marvinpinto/action-automatic-releases@latest'
5552
with:
56-
tag_name: ${{ github.ref }}
57-
release_name: ${{ github.ref }} # Use the tag name as the release title
58-
draft: false
59-
60-
- name: Upload Release Asset
61-
uses: actions/upload-release-asset@v1
62-
env:
63-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64-
with:
65-
upload_url: ${{ steps.create_release.outputs.upload_url }}
66-
asset_path: ./mm_radio.zip # Path to the zip file
67-
asset_name: mm_radio.zip # Name of the asset
68-
asset_content_type: application/zip
53+
repo_token: '${{ secrets.GITHUB_TOKEN }}'
54+
title: ${{ github.ref }}
55+
prerelease: false
56+
files: mm_radio.zip

0 commit comments

Comments
 (0)