electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.61k stars 1.74k forks source link

GitHub release not created reason=existing type not compatible with publishing #8179

Closed Thatoo closed 2 months ago

Thatoo commented 5 months ago

I'm sorry, I'm completely new to electron. I'll try to explain as well as I can my issue. I'm trying to make Github action build and publish an appimage when I create a new release.

When it comes to npm run build -d -- --linux, it doesn't end on error but it says :

  • GitHub release not created  reason=existing type not compatible with publishing type tag=v0.0.1 version=0.0.1 existingType=release publishingType=draft
  • skipped publishing  file=Accolades-Linux-0.0.1.AppImage reason=existing type not compatible with publishing type tag=v0.0.1 version=0.0.1 existingType=release publishingType=draft
  • skipped publishing  file=latest-linux.yml reason=existing type not compatible with publishing type tag=v0.0.1 version=0.0.1 existingType=release publishingType=draft

My .github/workflows/npm-publish-github-packages.yml file is as follow :

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package

on:
  release:
    types: [created]

jobs:
  publish-gpr:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      packages: write
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 18
          registry-url: https://npm.pkg.github.com/
      - run: npm ci
      - run: npm run build -d -- --linux
        env:
          GH_TOKEN: ${{ secrets.GH_TOKEN }}
      - run: npm publish
        env:
          NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

It succeed but then I don't find any .appimage file in Releases not in Pachages. If it helps, here is my repo : https://github.com/Thatoo/nextcloud-electron/tree/Thatoo-patch-1 (I didn't touch to master branch to make github action work)

Thank you for your help.

github-actions[bot] commented 3 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] commented 2 months ago

This issue was closed because it has been stalled for 30 days with no activity.