Skip to content

Create and upload release assets #46

Create and upload release assets

Create and upload release assets #46

Workflow file for this run

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