-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Issue #916 - Add github download count * put the vrsion as last field * use ecole_directe examples --------- Co-authored-by: Jean-Marc Collin <jean-marc.collin-extern@renault.com>
- Loading branch information
1 parent
59abbe1
commit 077d2d4
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
name: Prepare release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: "Set version number" | ||
run: | | ||
yq -i -o json '.version="${{ github.event.release.tag_name }}"' \ | ||
"${{ github.workspace }}/custom_components/versatile_thermostat/manifest.json" | ||
# Pack the HACS dir as a zip and upload to the release | ||
- name: ZIP Versatile Thermostat Dir | ||
run: | | ||
cd "${{ github.workspace }}/custom_components/versatile_thermostat" | ||
zip versatile_thermostat.zip -r ./ | ||
- name: Upload zip to release | ||
uses: softprops/action-gh-release@v2.2.1 | ||
with: | ||
files: ${{ github.workspace }}/custom_components/versatile_thermostat/versatile_thermostat.zip |
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
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