Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SOH69 committed Jun 1, 2024
1 parent 3f52743 commit b783a9b
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '21.x'
cache: 'pnpm'
cache-dependency-path: 'web/pnpm-lock.yaml'

- name: Install dependencies
run: pnpm install
Expand All @@ -45,10 +47,22 @@ jobs:
cp -r ./build ./temp/mm_radio/build/
cd ./temp && zip -r ../mm_radio.zip ./mm_radio
- name: Create Release
uses: 'marvinpinto/action-automatic-releases@latest'
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
title: 'v2.0.6'
prerelease: false
files: mm_radio.zip
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }} # Use the tag name as the release title
draft: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./mm_radio.zip # Path to the zip file
asset_name: mm_radio.zip # Name of the asset
asset_content_type: application/zip

0 comments on commit b783a9b

Please sign in to comment.