Create and upload release assets #46
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: Create and upload release assets | |
on: | |
release: | |
types: | |
- created | |
jobs: | |
build: | |
name: Create Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/[email protected] | |
- name: Determine tag name | |
id: tagName | |
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} | |
- name: Update manifest version | |
uses: jossef/action-set-json-field@v1 | |
with: | |
file: public/manifest.json | |
field: Version | |
value: ${{ steps.tagName.outputs.tag }}.${{ github.run_number }} | |
- name: NPM Install | |
run: npm install | |
- name: VUE Build | |
run: npm run build | |
- name: Streamdeck Bundle | |
run: npm run bundle | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: ./de.perdoctus.streamdeck.homeassistant.streamDeckPlugin | |
asset_name: de.perdoctus.streamdeck.homeassistant.streamDeckPlugin | |
asset_content_type: application/zip |