add ubuntu app and release #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v2 | |
- name: Install Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- name: Change to music_player directory | |
run: cd music_player | |
- name: Install Dependencies | |
run: | | |
cd music_player | |
npm install | |
- name: Build and Release | |
run: | | |
cd music_player | |
npm run dist | |
- name: Upload Release Asset | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: music_player/dist/*.dmg | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} |