Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKohler committed Nov 29, 2020
0 parents commit c8ecf08
Show file tree
Hide file tree
Showing 10 changed files with 1,235 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Release

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 8
- 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/[email protected]
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/[email protected]
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/[email protected]
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
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.swp
*.tgz
*~
/node_modules/
.DS_Store
*.sha256sum
SHA256SUMS
Loading

0 comments on commit c8ecf08

Please sign in to comment.