Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

How to upload binary/ executable after tag is released. #520

Open
wxguy opened this issue Sep 8, 2022 · 1 comment
Open

How to upload binary/ executable after tag is released. #520

wxguy opened this issue Sep 8, 2022 · 1 comment

Comments

@wxguy
Copy link

wxguy commented Sep 8, 2022

Right now I am using two action files to create a binary for Linux and Windows. The time taken to build Windows is a little longer than Linux. Therefore, the Linux action file creates a release tag and uploads the binary before Windows could complete it.

The issue here I am facing is windows release fails with the following error:

Creating new release
  Error: Validation Failed: {"resource":"Release","code":"already_exists","field":"tag_name"}
  (node:3964) UnhandledPromiseRejectionWarning: HttpError: Validation Failed: {"resource":"Release","code":"already_exists","field":"tag_name"}
      at D:\a\_actions\marvinpinto\action-automatic-releases\latest\dist\index.js:1:361954
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
  (node:3964) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
  (node:3964) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Is there a way to release both the files (Windows and Linux) which are generated on different VM at the same time? Or is it possible to append the tag for uploading a new binary?

@ldeluigi
Copy link
Contributor

Use a single workflow, with a linux job and a windows job. When both are done, run the release job that collects both artifacts (binaries) and releases them altogether

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants