Skip to content

Commit

Permalink
build: merge actions config
Browse files Browse the repository at this point in the history
  • Loading branch information
rocka committed Oct 20, 2024
1 parent 63a2444 commit dd77617
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 83 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/ci.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,44 @@
name: CI
name: Build

on:
push:
branches: [master]

defaults:
run:
shell: bash
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Checkout source code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: latest
cache: yarn

- name: Install dependencies
run: |
yarn install
- name: Build
env:
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
S3_BUCKET: ${{ secrets.S3_BUCKET }}
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
run: |
yarn install
script/ci-build.sh push
curl --silent ${{ secrets.WEBHOOK_URL }}
script/ci-build.sh ${{ github.event_name }}
- name: Upload asar
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: asar
path: build/*.asar

- name: Notify webhook
if: github.event_name == 'push' && github.ref_name == 'master'
run: |
curl --silent ${{ secrets.WEBHOOK_URL }}
34 changes: 0 additions & 34 deletions .github/workflows/pull_request.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion script/packager.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function clean() {
* @param {string} argv
*/
function build(argv) {
require('electron-packager')({
require('@electron/packager')({
name: config.productName,
executableName: config.name,
arch: 'x64',
Expand Down

0 comments on commit dd77617

Please sign in to comment.