Skip to content

Commit

Permalink
Post to discord on new release
Browse files Browse the repository at this point in the history
  • Loading branch information
loopj committed Aug 28, 2023
1 parent d9fcc50 commit 8ad3737
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,33 @@ permissions: {}

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

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

- name: Github Releases To Discord
uses: SethCohen/[email protected]
with:
webhook_url: ${{ secrets.WEBHOOK_URL }}
username: "Release Changelog"

0 comments on commit 8ad3737

Please sign in to comment.