-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (48 loc) · 1.74 KB
/
build-dev.yml
File metadata and controls
58 lines (48 loc) · 1.74 KB
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
name: Build development package
on:
# Runs every Monday at 1:00
#schedule:
# - cron: '0 1 * * 1'
workflow_dispatch:
env:
RELEASE_UPLOAD_URL: "https://uploads.github.com/repos/thinreports/thinreports-section-editor/releases/59428964/assets{?name,label}"
RELEASE_ID: 59428964
jobs:
build-dev:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
include:
- os: macos-latest
package-ext: .dmg
- os: ubuntu-latest
package-ext: .AppImage
- os: windows-latest
package-ext: .exe
steps:
- uses: actions/checkout@v4
- name: Build package
uses: ./.github/actions/build-package
- name: Prepare
id: prepare
uses: actions/github-script@v7
with:
script: |
const fs = require('fs');
const path = require('path');
const packagePath = fs.readdirSync('dist_electron').find(file => file.includes('${{ matrix.package-ext }}'));
core.setOutput('PACKAGE_PATH', path.join('dist_electron', packagePath));
core.setOutput('PACKAGE_NAME', path.basename(packagePath, '${{ matrix.package-ext }}'));
- name: Deploy development build
uses: WebFreak001/deploy-nightly@v3.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ env.RELEASE_UPLOAD_URL }}
release_id: ${{ env.RELEASE_ID }}
asset_path: ${{ steps.prepare.outputs.PACKAGE_PATH }}
asset_name: ${{ steps.prepare.outputs.PACKAGE_NAME }}-$$${{ matrix.package-ext }}
asset_content_type: application/octet-stream
max_releases: 1