Skip to content

2.1.1

2.1.1 #9

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
release:
name: Prepare release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v3
with:
node-version: 14
- name: Build the file
run: |
npm install
npm version --git-tag-version=false --commit-hooks=false "${{ github.event.release.tag_name }}"
npm run build
- name: Upload build result to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/ampli-panel-card.js
asset_name: ampli-panel-card.js
tag: ${{ github.ref }}
overwrite: true
- name: Upload DS-DIGII.TTF to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: fonts/DS-DIGII.TTF
asset_name: DS-DIGII.TTF
tag: ${{ github.ref }}
overwrite: true
- name: Upload LEDCalculator.ttf to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: fonts/LEDCalculator.ttf
asset_name: LEDCalculator.ttf
tag: ${{ github.ref }}
overwrite: true