Skip to content

Commit

Permalink
chore(pipeline): add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
bj00rn committed Nov 25, 2023
1 parent be837b4 commit 2e8b7e5
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/[email protected]"

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

0 comments on commit 2e8b7e5

Please sign in to comment.