Skip to content

fix: do not create potentially invalid properties prefixed with devic… #8

fix: do not create potentially invalid properties prefixed with devic…

fix: do not create potentially invalid properties prefixed with devic… #8

Workflow file for this run

name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Set release version
run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
- name: Package project
run: |
./package.sh
- name: Create Release
id: create_release
uses: actions/create-release@v1.1.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ env.RELEASE_VERSION }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: netatmo-energy-adapter-${{ env.RELEASE_VERSION }}.tgz
asset_name: netatmo-energy-adapter-${{ env.RELEASE_VERSION }}.tgz
asset_content_type: application/gnutar
- name: Upload Release Asset Checksum
id: upload-release-asset-checksum
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: netatmo-energy-adapter-${{ env.RELEASE_VERSION }}.tgz.sha256sum
asset_name: netatmo-energy-adapter-${{ env.RELEASE_VERSION }}.tgz.sha256sum
asset_content_type: text/plain