From a971452f7c332d569cc14df1f5df11b5b44d8b27 Mon Sep 17 00:00:00 2001 From: Oj Date: Fri, 10 Dec 2021 23:19:15 +0000 Subject: [PATCH] [CI] Initial Add --- .github/workflows/release_nightly.yml | 47 +++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/release_nightly.yml diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.yml new file mode 100644 index 0000000..afba71a --- /dev/null +++ b/.github/workflows/release_nightly.yml @@ -0,0 +1,47 @@ +name: Release Nightly + +on: + push: + branches: [ master ] + +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 .. + + - name: Install Asar + run: npm i -g asar + + - name: Pack Asar + run: npx asar pack src openasar.asar + + - name: Make Deps Asar + run: | + cd src + npm install request + cd .. + npx asar pack src openasar-with-deps.asar + + - name: GitHub Release + uses: ncipollo/release-action@v1 + with: + tag: "nightly" + allowUpdates: true + prerelease: true + artifacts: "app.asar,openasar-with-deps.asar" + + name: "Nightly" + + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file