[CI] Try another different way of making releases

This commit is contained in:
Ducko 2021-12-11 10:23:24 +00:00
parent 00e9539e22
commit 562340a9c5

View file

@ -28,11 +28,12 @@ jobs:
rm -rf src/package-lock.json src/node_modules/.package-lock.json src/splash/splashScreen.js.self src/node_modules/**/package.json src/node_modules/**/*.md src/node_modules/**/.*.yml src/node_modules/**/.npmignore src/node_modules/**/LICENSE src/node_modules/**/test*
npx asar pack src app.asar
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "nightly"
prerelease: true
title: "Nightly"
files: |
app.asar
- name: GitHub Release
run: |
gh release delete ${{ env.VERSION }} -y
gh release create ${{ env.VERSION }} -p -t "${{ env.NAME }}" ${{ env.FILES }}
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
VERSION: 'nightly'
NAME: 'Nightly'
FILES: app.asar