Skip to content

Commit 2fc92c4

Browse files
authored
Merge pull request #150 from 10up/dev/update-example
update release asset example
2 parents 9273e6d + 4ce006a commit 2fc92c4

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

examples/deploy-on-publishing-a-new-release-and-attach-a-zip-file-to-the-release.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -80,21 +80,12 @@ jobs:
8080
# After the deploy, we also want to create a zip and upload it to the release on Github. We don't want
8181
# users to have to go to the repository to find our plugin :).
8282
- name: Upload release asset
83-
uses: actions/upload-release-asset@v1
83+
uses: softprops/action-gh-release@v2
8484
env:
8585
# Note, this is an exception to action secrets: GH_TOKEN is always available and provides access to
8686
# the current repository this action runs in.
8787
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8888

8989
with:
90-
# Get the URL for uploading assets to the current release.
91-
upload_url: ${{ github.event.release.upload_url }}
92-
93-
# Provide the path to the file generated in the previous step using the output.
94-
asset_path: ${{ steps.deploy.outputs.zip-path }}
95-
9690
# Provide what the file should be named when attached to the release (plugin-name.zip)
97-
asset_name: ${{ github.event.repository.name }}.zip
98-
99-
# Provide the file type.
100-
asset_content_type: application/zip
91+
files: ${{ github.workspace }}/${{ github.event.repository.name }}.zip

0 commit comments

Comments
 (0)