Skip to content

Commit

Permalink
chore: ghactions
Browse files Browse the repository at this point in the history
  • Loading branch information
lovegaoshi committed May 30, 2024
1 parent bc54fae commit ae8e8a8
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 48 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: build check
on:
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Setup Yarn
uses: threeal/[email protected]

- name: Install dependencies
run: yarn; git submodule update --init --recursive

- name: 'Create env file'
run: |
echo "${{ secrets.ENV_FILE }}" > .env
- name: yarn build
run: |
yarn build
zip -r NoxPlayer.zip build
- name: pack crx
uses: cardinalby/webext-buildtools-chrome-crx-action@v2
with:
# zip file made at the packExtensionDir step
zipFilePath: 'NoxPlayer.zip'
crxFilePath: 'NoxPlayer.crx'
privateKey: ${{ secrets.PEM_KEY }}
17 changes: 7 additions & 10 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
outputs:
should_run: ${{ steps.should_run.outputs.should_run }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: print latest_commit
run: echo ${{ github.sha }}

Expand Down Expand Up @@ -45,12 +45,12 @@ jobs:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'

- name: Setup Yarn
uses: threeal/[email protected]
Expand All @@ -67,12 +67,9 @@ jobs:
echo "${{ secrets.ENV_FILE }}" > .env
- name: yarn build
run: yarn build

- name: zip
uses: montudor/action-zip@v1
with:
args: zip -qq -r NoxPlayer.zip build
run: |
yarn build
zip -r NoxPlayer.zip build
- name: pack crx
uses: cardinalby/webext-buildtools-chrome-crx-action@v2
Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get Tag
id: get_tag
Expand All @@ -22,9 +22,9 @@ jobs:
run: echo "${{ steps.get_tag.outputs.tag }}"

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'

- name: Setup Yarn
uses: threeal/[email protected]
Expand Down Expand Up @@ -54,12 +54,9 @@ jobs:
echo "Commit Tag: $COMMIT_TAG"
- name: yarn build
run: yarn build

- name: zip
uses: montudor/action-zip@v1
with:
args: zip -qq -r NoxPlayer.zip build
run: |
yarn build
zip -r NoxPlayer.zip build
- name: pack crx
uses: cardinalby/webext-buildtools-chrome-crx-action@v2
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/webpack.yml

This file was deleted.

0 comments on commit ae8e8a8

Please sign in to comment.