Skip to content

Commit 98cc6f9

Browse files
committed
Refactor release workflow to use GitHub CLI for asset upload and streamline permissions
1 parent 90c398d commit 98cc6f9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: write
9+
710
jobs:
811
release:
912
runs-on: ubuntu-latest
@@ -19,11 +22,7 @@ jobs:
1922
cd ..
2023
2124
- name: Upload release asset
22-
uses: actions/upload-release-asset@v1
2325
env:
2426
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25-
with:
26-
upload_url: ${{ github.event.release.upload_url }}
27-
asset_path: ./unifi_network.zip
28-
asset_name: unifi_network.zip
29-
asset_content_type: application/zip
27+
run: |
28+
gh release upload ${{ github.event.release.tag_name }} unifi_network.zip

0 commit comments

Comments
 (0)