forked from sindresorhus/caprine
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (52 loc) · 1.65 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Build and publish
on: [push]
permissions:
contents: write
pages: write
id-token: write
jobs:
tests:
uses: ./.github/workflows/tests.yml
build:
needs: [tests]
runs-on: ${{ matrix.os }}
strategy:
matrix:
runtime: [ linux-arm64 ]
include:
- runtime: linux-arm64
os: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v2
if: startsWith(matrix.os, 'ubuntu') && matrix.runtime == 'linux-arm64'
- name: Build & publish Caprine
uses: therealartti/electron-builder-action@master
if: startsWith(matrix.os, 'ubuntu') && matrix.runtime == 'linux-arm64'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
mac_certs: ${{ secrets.CSC_LINK }}
mac_certs_password: ${{ secrets.CSC_KEY_PASSWORD }}
args: '--arm64'
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.snapcraft_token }}
- name: Show .deb
if: startsWith(matrix.os, 'ubuntu') && matrix.runtime == 'linux-arm64'
run: echo $(find . -type f -name "*.deb")
- name: Upload binaries to release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true
files: dist/*.deb
body: "Release .deb"