-
Notifications
You must be signed in to change notification settings - Fork 111
45 lines (37 loc) · 1.07 KB
/
publish-github-release.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
name: Publish GitHub Release
on:
push:
branches:
- release/production
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Install dependencies
run: npm i
- name: Make version.sh for xcode project executable
run: chmod +x build/xcode/Save\ to\ Raindrop.io/version.sh
- name: Build for all platforms
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
run: npm run build && npm run build:extension && npm run build:electron
- name: Read package json
id: json
uses: zoexx/github-action-json-file-properties@release
with:
file_path: "package.json"
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: ${{steps.json.outputs.version}}
files: |
dist/*.zip