Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0ab45ce

Browse files
committedNov 16, 2020
fix files not being added to the release and the double release problem
svenstaro/upload-release-action did not find a draft release
1 parent d72111e commit 0ab45ce

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed
 

‎.github/workflows/release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,14 @@ jobs:
334334
- name: Download artifact
335335
uses: actions/download-artifact@v2 # download all the artifacts
336336

337+
- name: prepare artifacts for the release
338+
run: |
339+
mkdir release
340+
chmod -v +x ArduinoCreateAgent-linux-x64/*.run
341+
mv -v ArduinoCreateAgent-linux-x64/* release/
342+
cat ArduinoCreateAgent-osx/*.tar | tar -xvf - -i -C /release
343+
mv -v ArduinoCreateAgent-windows/* release/
344+
337345
# - name: Read CHANGELOG
338346
# id: changelog
339347
# run: |
@@ -360,17 +368,17 @@ jobs:
360368
with:
361369
tag_name: ${{ github.ref }}
362370
release_name: ${{ github.ref }}
363-
draft: true # only for test
364-
prerelease: true # see later how to handle this (maybe just a check on "-dev" will be sufficient)
365371
body: "THIS IS A TEST RELEASE"
372+
draft: false
373+
prerelease: true # see later how to handle this (maybe just a check on "-dev" will be sufficient)
366374

367375
- name: Upload release files on Github
368376
uses: svenstaro/upload-release-action@v2
369377
with:
370378
repo_token: ${{ secrets.GITHUB_TOKEN }}
371379
tag: ${{ github.ref }}
372380
file_glob: true # If set to true, the file argument can be a glob pattern
373-
file: ArduinoCreateAgent*
381+
file: release/*
374382

375383
# - name: Upload release files on Arduino downloads servers
376384
# uses: docker://plugins/s3

0 commit comments

Comments
 (0)
Please sign in to comment.