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
# TODO: Both create-release and upload-release-asset are abandonded, need to port to maintained replacements. Both suggest replacements in their README.
117
-
118
-
- name: Create release for asset
119
-
id: create_release
120
-
uses: actions/create-release@v1
121
-
env:
122
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
123
-
with:
124
-
tag_name: ${{ env.GITHUB_SHA_SHORT }}
125
-
release_name: Automatic build for changeset ${{ env.GITHUB_SHA_SHORT }}
126
-
body: |
127
-
This is an automated build for changeset ${{ env.GITHUB_SHA_SHORT }}
128
-
draft: false
129
-
prerelease: true
130
-
if: github.ref == 'refs/heads/master'
131
-
- name: Upload asset
132
-
id: upload-release-asset
133
-
uses: actions/upload-release-asset@v1
134
-
env:
135
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
136
-
with:
137
-
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
0 commit comments