Skip to content

Commit

Permalink
Use new upload release action (#2)
Browse files Browse the repository at this point in the history
* Use new upload release action

* Add permissions
  • Loading branch information
DCSBL authored Jun 6, 2024
1 parent 893a951 commit e428277
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ name: Release
on:
release:
types: [published]

permissions:
contents: write

jobs:
release_zip_file:
Expand All @@ -29,19 +32,9 @@ jobs:
cd ${{ github.workspace }}/custom_components/flitsmeister
zip flitsmeister.zip -r ./
- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/custom_components/flitsmeister/flitsmeister.zip
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ github.workspace }}/custom_components/flitsmeister/flitsmeister.zip
asset_name: flitsmeister.zip
asset_content_type: application/zip

0 comments on commit e428277

Please sign in to comment.