Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Xerolux authored Sep 25, 2024
1 parent 93262de commit d4f63ce
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Release"

on:
release:
types:
- "published"

permissions: {}

jobs:
release:
name: "Release"
runs-on: "ubuntu-latest"
permissions:
contents: write
steps:
- name: "Checkout the repository"
uses: "actions/checkout@v4.1.5"

- name: "Adjust version number"
shell: "bash"
run: |
yq -i -o json '.version="${{ github.event.release.tag_name }}"' \
"${{ github.workspace }}/custom_components/violet_pool_controller/manifest.json"
- name: "ZIP the integration directory"
shell: "bash"
run: |
cd "${{ github.workspace }}/custom_components/violet_pool_controller"
zip proconip_pool_controller.zip -r ./
- name: "Upload the ZIP file to the release"
uses: softprops/action-gh-release@v2
with:
files: ${{ github.workspace }}/custom_components/violet_pool_controller/violet_pool_controller.zip

0 comments on commit d4f63ce

Please sign in to comment.