OpenAsar/.github/workflows/release_nightly.yml

38 lines
986 B
YAML
Raw Normal View History

2021-12-10 23:19:15 +00:00
name: Release Nightly
on:
push:
2021-12-10 23:25:28 +00:00
branches: [ main ]
2021-12-10 23:19:15 +00:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js v16.x
uses: actions/setup-node@v2
with:
node-version: 16.x
- name: NPM Install
run: cd src; npm i; cd ..
2021-12-11 00:45:56 +00:00
- name: Pack
2021-12-10 23:19:15 +00:00
run: |
2021-12-11 00:45:56 +00:00
npm i -g asar
node injectPolyfills.js
2021-12-11 01:17:03 +00:00
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
2021-12-10 23:19:15 +00:00
- uses: "marvinpinto/action-automatic-releases@latest"
2021-12-10 23:19:15 +00:00
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "nightly"
2021-12-10 23:19:15 +00:00
prerelease: true
title: "Nightly"
files: |
app.asar