Skip to content

Commit

Permalink
Create release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cifkao committed Aug 17, 2020
1 parent e53b3de commit 8d3b074
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release

on:
release:
types:
- created

jobs:
dist:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install
run: |
cd $GITHUB_WORKSPACE
yarn install
- name: Build
run: yarn build

- name: Upload
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: dist/index.js
asset_name: html-midi-player.js
asset_content_type: application/javascript

0 comments on commit 8d3b074

Please sign in to comment.