2023-09-16 18:03:01 +02:00
|
|
|
name: release-assets
|
2023-09-16 17:39:38 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- v*.*.*
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-10-20 16:22:42 +02:00
|
|
|
include:
|
|
|
|
- os: ubuntu-latest
|
2023-10-20 17:40:36 +02:00
|
|
|
arch: [arm64, amd64]
|
2023-10-20 16:22:42 +02:00
|
|
|
- os: macos-latest
|
|
|
|
arch: [arm64, amd64]
|
|
|
|
- os: windows-latest
|
2023-10-21 10:28:14 +02:00
|
|
|
arch: [arm64, amd64]
|
2023-09-16 17:39:38 +02:00
|
|
|
steps:
|
|
|
|
- name: Check out Git repository
|
2024-04-11 16:04:19 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-09-16 17:39:38 +02:00
|
|
|
|
|
|
|
- name: Install Node.js
|
2024-04-11 16:04:19 +02:00
|
|
|
uses: actions/setup-node@v4
|
2023-09-16 17:39:38 +02:00
|
|
|
with:
|
2023-10-12 11:35:27 +02:00
|
|
|
node-version: 18
|
2023-09-16 17:39:38 +02:00
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: npm install
|
|
|
|
|
2023-09-16 18:03:01 +02:00
|
|
|
- name: build-linux
|
|
|
|
if: matrix.os == 'ubuntu-latest'
|
|
|
|
run: npm run build:linux
|
2023-10-12 02:41:44 +02:00
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
2023-09-16 17:39:38 +02:00
|
|
|
|
2023-09-16 18:03:01 +02:00
|
|
|
- name: build-mac
|
|
|
|
if: matrix.os == 'macos-latest'
|
|
|
|
run: npm run build:mac
|
2023-10-12 02:41:44 +02:00
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
2023-09-16 17:39:38 +02:00
|
|
|
|
|
|
|
- name: build-win
|
|
|
|
if: matrix.os == 'windows-latest'
|
|
|
|
run: npm run build:win
|
2023-10-12 02:41:44 +02:00
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
2023-09-16 17:39:38 +02:00
|
|
|
|
|
|
|
- name: release
|
2024-04-11 16:04:19 +02:00
|
|
|
uses: softprops/action-gh-release@v2
|
2023-09-16 17:39:38 +02:00
|
|
|
with:
|
2023-10-20 18:21:18 +02:00
|
|
|
draft: true
|
|
|
|
prerelease: true
|
2023-10-20 19:43:47 +02:00
|
|
|
fail_on_unmatched_files: false
|
2023-09-16 17:39:38 +02:00
|
|
|
files: |
|
2023-10-16 05:53:08 +02:00
|
|
|
dist-release/*.exe
|
|
|
|
dist-release/*.zip
|
|
|
|
dist-release/*.dmg
|
|
|
|
dist-release/*.AppImage
|
|
|
|
dist-release/*.snap
|
|
|
|
dist-release/*.deb
|
|
|
|
dist-release/*.rpm
|
|
|
|
dist-release/*.tar.gz
|
|
|
|
dist-release/*.blockmap
|
2023-10-24 05:08:27 +02:00
|
|
|
dist-release/latest.yml
|
|
|
|
dist-release/latest-mac.yml
|
|
|
|
dist-release/latest-linux.yml
|
|
|
|
dist-release/latest-linux-arm64.yml
|
2023-10-11 13:47:40 +02:00
|
|
|
env:
|
2023-10-24 05:08:27 +02:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|