willianrod / ODeck

A free and open-source alternative to StreamDeck
https://odeck.app
MIT License
399 stars 25 forks source link

ci: add workflow to create release from tags #33

Closed EduardoJM closed 1 year ago

EduardoJM commented 1 year ago

Propose to closes #29


This workflow proposes an workflow to run:

  1. a Windows job to build the Windows version of the electron app.
  2. a MacOS job to build the MacOS version of the elctron app.
  3. a Ubuntu job that get the artifacts builded in the above jobs and create the GitHub release.

I decided to use this way to get more control for releasing than using electron-builder --publish(like changing release body text, adding other files as the APK's or add automatic release to an web store if needed).


Another important thing is: is needed to create an new access token with permission to create release and add as GITHUB_TOKEN secret.

Update:

  1. I added an new job to release the Linux AppImage version of the application.

  2. I removed the original workflows publish.yml and test.yml, because the actions are disabled for this repository, then i supposed that are not working.

EduardoJM commented 1 year ago

Hi @willianrod i update this today, and added the Linux AppImage release support and, really removed the old workflows (because the actions are disabled on this repository).

EduardoJM commented 1 year ago

I have got this same error on Windows with old setup node action version, but in a private test repository, only update to more recent setup-node fixed 😢

image

willianrod commented 1 year ago

@EduardoJM which version have you used?

EduardoJM commented 1 year ago

@EduardoJM which version have you used?

The version actions/setup-node@v3 (in the workflow). I have update from v2 to v3 to solve the problem.

But, now, the action was successful runned