diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..92c44ab --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +name: "Release" + +on: + release: + types: + - published +permissions: + contents: write + packages: write + + +jobs: + release: + name: Prepare release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Create zip file + run: | + cd custom_components/ha_jokes + zip -r ../../secretsentry.zip . -x "__pycache__/*" "*.pyc" "*.pyo" + + - name: Upload zip to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ./secretsentry.zip + asset_name: secretsentry.zip + tag: ${{ github.event.release.tag_name }} + overwrite: true diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..fb5522a --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,20 @@ +name: "Validate" + +on: + push: + pull_request: + schedule: + - cron: "0 0 * * *" + +jobs: + validate: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v4" + - name: HACS validation + uses: "hacs/action@main" + with: + category: "integration" + ignore: brands + - name: Hassfest validation + uses: "home-assistant/actions/hassfest@master" diff --git a/custom_components/secretsentry/manifest.json b/custom_components/secretsentry/manifest.json index a63b406..5b6347e 100644 --- a/custom_components/secretsentry/manifest.json +++ b/custom_components/secretsentry/manifest.json @@ -1,12 +1,12 @@ { "domain": "secretsentry", "name": "SecretSentry", - "codeowners": ["@secretsentry"], + "codeowners": ["@HallyAus"], "config_flow": true, - "documentation": "https://github.com/secretsentry/secretsentry", + "documentation": "https://github.com/HallyAus/SecretSentry/", "iot_class": "local_polling", - "issue_tracker": "https://github.com/secretsentry/secretsentry/issues", - "version": "3.0.6", + "issue_tracker": "hhttps://github.com/HallyAus/SecretSentry/issues", + "version": "3.0.8", "requirements": [], "dependencies": [], "integration_type": "service"