Skip to content

Commit 79b77e0

Browse files
committed
Use another release action
See: actions/create-release#2
1 parent 3d266e2 commit 79b77e0

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -94,29 +94,29 @@ jobs:
9494
9595
- name: Create Release
9696
id: create-release
97-
uses: actions/create-release@latest
98-
env:
99-
# This token is provided by Actions, you do not need to create your own token
100-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97+
uses: actions/action-release@master
10198
with:
102-
tag_name: ${{ github.ref }}
103-
release_name: Test # ${{ steps.get-version.outputs.VERSION }}
99+
token: ${{ secrets.GITHUB_TOKEN }}
100+
files: 'example.phar'
101+
folder: "${{github.workspace}}/"
102+
tag: ${{ github.ref }}
103+
name: ${{ steps.get-version.outputs.VERSION }}
104104
body: 'All notable changes to this version has been documented in the CHANGELOG.md file.'
105105
draft: false
106106
prerelease: false
107107

108-
- name: Upload Release Asset
109-
id: upload-release-asset
110-
uses: actions/upload-release-asset@v1
111-
env:
112-
# This token is provided by Actions, you do not need to create your own token
113-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114-
with:
115-
# This pulls from the 'Create Release' step above,
116-
# referencing it's ID to get its outputs object,
117-
# which include a 'upload_url'. See this blog post for more info:
118-
# https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
119-
upload_url: ${{ steps.create-release.outputs.upload_url }}
120-
asset_path: ./example.phar
121-
asset_name: example.phar
122-
asset_content_type: application/x-php
108+
# - name: Upload Release Asset
109+
# id: upload-release-asset
110+
# uses: actions/upload-release-asset@v1
111+
# env:
112+
# # This token is provided by Actions, you do not need to create your own token
113+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114+
# with:
115+
# # This pulls from the 'Create Release' step above,
116+
# # referencing it's ID to get its outputs object,
117+
# # which include a 'upload_url'. See this blog post for more info:
118+
# # https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
119+
# upload_url: ${{ steps.create-release.outputs.upload_url }}
120+
# asset_path: ./example.phar
121+
# asset_name: example.phar
122+
# asset_content_type: application/x-php

0 commit comments

Comments
 (0)