-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- flake8 and black linting - add CONFIG_SCHEMA per hassfest checks - have vscode generate valid text files - remove (currently unused) pandas requirement - remove invalid `iot_class` entry from hacs.json - bump release action, harden version-change regex, switch to supported gh-release action.
- Loading branch information
Showing
6 changed files
with
21 additions
and
40 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
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 |
---|---|---|
|
@@ -7,55 +7,32 @@ on: | |
release: | ||
types: [published] | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
release_zip_file: | ||
name: Prepare and upload release asset | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
env: | ||
BERMUDA_ROOT_DIR: "${{ github.workspace }}/custom_components/bermuda" | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v1 | ||
|
||
# - name: Download Lokalise CLI | ||
# run: | | ||
# curl -sfL https://raw.githubusercontent.com/lokalise/lokalise-cli-2-go/master/install.sh | sh | ||
# | ||
# - name: Download latest translations with Lokalise | ||
# run: | | ||
# ./bin/lokalise2 \ | ||
# --token "${{ secrets.lokalise_token }}"\ | ||
# --project-id "260939135f7593a05f2b79.75475372" \ | ||
# file download \ | ||
# --format json \ | ||
# --unzip-to /tmp/lokalise \ | ||
# --export-empty-as skip \ | ||
# --export-sort a_z \ | ||
# --original-filenames=false \ | ||
# --bundle-structure %LANG_ISO%.%FORMAT% | ||
# | ||
# - name: Move downloaded translations | ||
# run: | | ||
# mkdir -p "${{ env.BERMUDA_ROOT_DIR }}/translations/ | ||
# cp /tmp/lokalise/* "${{ env.BERMUDA_ROOT_DIR }}/translations/" | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set release version number in files | ||
run: | | ||
sed -i '/VERSION = /c\VERSION = "${{ github.ref_name }}"' "${{ env.BERMUDA_ROOT_DIR }}/const.py" | ||
sed -i '/VERSION.=./c\VERSION = "${{ github.ref_name }}"' "${{ env.BERMUDA_ROOT_DIR }}/const.py" | ||
(jq '.version = "${{ github.ref_name }}"' "${{ env.BERMUDA_ROOT_DIR }}/manifest.json") > "${{ env.BERMUDA_ROOT_DIR }}/manifest.json.tmp" | ||
mv "${{ env.BERMUDA_ROOT_DIR }}/manifest.json.tmp" "${{ env.BERMUDA_ROOT_DIR }}/manifest.json" | ||
- name: Add Bermuda folder to zip archive | ||
- name: Zip the integration directory | ||
run: | | ||
cd "${{ env.BERMUDA_ROOT_DIR }}" | ||
zip bermuda.zip -r ./ | ||
- name: Upload release asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: "Upload the ZIP file to the release" | ||
uses: softprops/[email protected] | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: "${{ env.BERMUDA_ROOT_DIR }}/bermuda.zip" | ||
asset_name: bermuda.zip | ||
asset_content_type: application/zip | ||
files: ${{ env.BERMUDA_ROOT_DIR }}/bermuda.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
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"name": "Bermuda BLE Triangulation", | ||
"hacs": "1.6.0", | ||
"iot_class": "local_polling", | ||
"homeassistant": "2022.10", | ||
"render_readme": true | ||
} |
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