From dfd939a7118f0773769d5575eec94d02a4d02237 Mon Sep 17 00:00:00 2001 From: CanardConfit Date: Fri, 2 Aug 2024 14:36:57 +0200 Subject: [PATCH] Update Workflow --- .github/workflows/build-and-release.yaml | 28 +++++++----------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build-and-release.yaml b/.github/workflows/build-and-release.yaml index fb3f93b..739cb3d 100644 --- a/.github/workflows/build-and-release.yaml +++ b/.github/workflows/build-and-release.yaml @@ -10,6 +10,9 @@ on: tags: - '[0-9]+.[0-9]+.[0-9]+.[0-9]+' +permissions: + contents: write + env: # Adjust this to your plugin title PLUGIN_NAME: "BahtiFocus" @@ -57,29 +60,14 @@ jobs: - name: Create Release id: create_release - uses: actions/create-release@v1 + uses: softprops/action-gh-release@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ github.ref_name }} - release_name: Release ${{ github.ref_name }} + name: Release ${{ github.ref_name }} draft: false prerelease: false - - name: Upload Plugin Zip - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./${{ env.PLUGIN_NAME }}.${{ github.ref_name }}.zip - asset_name: ${{ env.PLUGIN_NAME }}.${{ github.ref_name }}.zip - asset_content_type: application/zip - - name: Upload Manifest - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./${{ env.PLUGIN_NAME }}.${{ github.ref_name }}.manifest.json - asset_name: ${{ env.PLUGIN_NAME }}.${{ github.ref_name }}.manifest.json - asset_content_type: application/json + files: | + ./${{ env.PLUGIN_NAME }}.${{ github.ref_name }}.zip + ./${{ env.PLUGIN_NAME }}.${{ github.ref_name }}.manifest.json \ No newline at end of file