You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on:
release:
types: [created]branches:
- '*'name: Upload Release Asset On Release Publishjobs:
build:
name: Upload Release Assetruns-on: ubuntu-lateststeps:
- name: Checkout codeuses: actions/checkout@v4
- name: Build project # This would actually build your project, using zip for an example artifactrun: | zip --junk-paths -r Greetings.zip Greetings LICENSE README.md
- name: View projectrun: | unzip -l Greetings.zip#- name: Create Release# id: create_release# uses: actions/create-release@v1# env:# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}# with:# tag_name: ${{ github.ref }}# release_name: Release ${{ github.ref }}# draft: false# prerelease: false
- name: Upload Release Assetid: upload_release_assetuses: actions/upload-release-asset@v1env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}with:
#upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps upload_url: ${{ github.server_url }}/${{ github.repository }}/releases/${{ github.ref_name }} # while not calling create_release, this is the path handmadeasset_path: ./Greetings.zipasset_name: Greetings.zipasset_content_type: application/zip
- name: Upload Release Asset Outputrun: echo "💡 File available in ${{ steps.upload_release_asset.outputs.browser_download_url }}"
I doesn't return error, but it also does nothing.
Probably I'm just doing a mess, and I don't know.
The fact that there aren't any versions newer than v1 makes me suspicious.
Maybe it's deprecated?
ActionsBuild, test, and automate your deployment pipeline with world-class CI/CDQuestion
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Select Topic Area
Question
Body
Hi all!
I'm pretty new in actions.
I'm trying to get a workflow which enriches my assets on release with a custom one.
I started from this and tried to customize, 'cause I don't want it on API, but on creating a new release from web console.
https://github.com/actions/upload-release-asset#usage
Here what I made up to now:
I doesn't return error, but it also does nothing.
Probably I'm just doing a mess, and I don't know.
The fact that there aren't any versions newer than v1 makes me suspicious.
Maybe it's deprecated?
There's any other way I could obtain that result?
Beta Was this translation helpful? Give feedback.
All reactions