Skip to content

Commit

Permalink
ci: change upload release asset action
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaucau committed Jan 21, 2024
1 parent b7f6183 commit 41adecc
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/relesase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
tags:
- "v*.*.*"

env:
PLUGIN_SLUG: alt-text-generator-gpt-vision

jobs:
deploy:
name: Deploy to WP.org
Expand Down Expand Up @@ -35,15 +38,11 @@ jobs:
env:
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }
SLUG: alt-text-generator-gpt-vision
SLUG: ${{ env.PLUGIN_SLUG }}

- name: Upload release asset
uses: actions/upload-release-asset@v1
uses: softprops/action-gh-release@v1
with:
files: ${{github.workspace}}/${{ env.PLUGIN_SLUG }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ steps.deploy.outputs.zip-path }}
asset_name: ${{ github.event.repository.name }}.zip
asset_content_type: application/zip

0 comments on commit 41adecc

Please sign in to comment.