Skip to content

Commit c7f5f2a

Browse files
committedJul 27, 2021
test
1 parent 77cfd32 commit c7f5f2a

File tree

2 files changed

+31
-45
lines changed

2 files changed

+31
-45
lines changed
 

‎.github/workflows/build.yml

+30-45
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,32 @@
1-
name: Build/release
2-
3-
on: push
4-
5-
# # to narrow it down only to commits that have a tag
6-
# on:
7-
# push:
8-
# tags:
9-
# - '*'
10-
11-
# on:
12-
# push:
13-
# branches:
14-
# - "master"
15-
# tags:
16-
# - "v*"
17-
1+
# name of your github action
2+
name: CI
3+
# this will help you specify where to run
4+
on:
5+
push:
6+
branches:
7+
# this will run on the electron branch
8+
- arm64-m1
9+
# this is where the magic happens, each job happens in parallel btw
1810
jobs:
19-
release:
20-
runs-on: ${{ matrix.os }}
21-
22-
strategy:
23-
fail-fast: true
24-
matrix:
25-
os: [ macos-latest]
26-
11+
build_on_mac:
12+
runs-on: macOS-latest
2713
steps:
28-
- name: Check out Git repository
29-
uses: actions/checkout@v1
30-
31-
- name: Install Node.js, NPM and Yarn
32-
uses: actions/setup-node@v1
33-
with:
34-
node-version: 14
35-
36-
- name: Build/release Electron app
37-
uses: samuelmeuli/action-electron-builder@v1
38-
with:
39-
# GitHub token, automatically provided to the action
40-
# (No need to define this secret in the repo settings)
41-
github_token: ${{ secrets.github_token }}
42-
43-
# If the commit is tagged with a version (e.g. "v1.0.0"),
44-
# release the app after building
45-
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
46-
env:
47-
NODE_OPTIONS: '--max_old_space_size=4096'
14+
- uses: actions/checkout@v2
15+
with:
16+
ref: electron
17+
- uses: actions/setup-node@v2
18+
with:
19+
node-version: 14
20+
- name: see directory
21+
run: ls
22+
build_on_win:
23+
runs-on: windows-2016
24+
steps:
25+
- uses: actions/checkout@v2
26+
with:
27+
ref: feature/github-actions
28+
- uses: actions/setup-node@v2
29+
with:
30+
node-version: 14
31+
- name: see directory
32+
run: ls

‎docs/notes/2021-07-26-github-actions-release.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- [Electron Builder Action](https://github.com/marketplace/actions/electron-builder-action)
1212
- [electron-builder](https://www.electron.build/)
1313
- [Packaging and Publishing an Electron App](https://samuelmeuli.com/blog/2019-04-07-packaging-and-publishing-an-electron-app/)
14+
- [Building an electron app on github actions! Windows and MacOS](https://medium.com/@johnjjung/building-an-electron-app-on-github-actions-windows-and-macos-53ab69703f7c)
1415
- [List of all macOS versions - including the latest macOS](https://www.macworld.co.uk/feature/os-x-macos-versions-3662757/)
1516
- [2.6 Git Basics - Tagging](https://git-scm.com/book/en/v2/Git-Basics-Tagging)
1617
- [Git tag](https://www.atlassian.com/git/tutorials/inspecting-a-repository/git-tag)

0 commit comments

Comments
 (0)
Please sign in to comment.