Skip to content

Commit

Permalink
Update Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
CanardConfit committed Aug 2, 2024
1 parent 4cbc6eb commit dfd939a
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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

0 comments on commit dfd939a

Please sign in to comment.