Skip to content

Commit d99c34e

Browse files
committed
Fix release action
1 parent c564c29 commit d99c34e

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -377,23 +377,27 @@ jobs:
377377
id: get-version
378378
run: |
379379
echo ::set-output name=version::${GITHUB_REF#refs/tags/}
380-
echo ::set-output name=release_body::$(.ci/release-notes.sh CHANGELOG.md)
381380
382381
- name: Download Zephir Parser build artifacts
383382
id: download
384383
uses: actions/download-artifact@v2
384+
with:
385+
path: ./build-artifacts
385386

386-
- name: Check for Release Assets
387+
- name: Prepare Release assets
387388
run: |
388-
ls -lah | grep "\.zip"
389+
mkdir -p ./build-artifacts/release
390+
find ./build-artifacts -type f -name zephir-parser*.zip -exec cp {} ./build-artifacts/release/ ";"
391+
echo "-- Creating Release Notes"
392+
GITHUB_ACTIONS=false ./.ci/release-notes.sh ./CHANGELOG.md > ./build-artifacts/release/release-notes.md
389393
390394
- name: Create Release
391395
uses: ncipollo/release-action@v1
392396
with:
393397
token: ${{ secrets.GITHUB_TOKEN }}
394398
name: ${{ steps.get-version.outputs.version }}
395399
tag: ${{ steps.get-version.outputs.version }}
396-
body: ${{ steps.get-version.outputs.release_body }}
400+
bodyFile: "./build-artifacts/release/release-notes.md"
397401
allowUpdates: true
398-
artifacts: "${{steps.download.outputs.download-path}}/zephir-parser*.zip"
402+
artifacts: "./build-artifacts/release/*.zip"
399403
artifactContentType: application/octet-stream

0 commit comments

Comments
 (0)