mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
77 lines
No EOL
1.8 KiB
YAML
77 lines
No EOL
1.8 KiB
YAML
name: Create Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: release-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
NODE_VERSION: 20.11.0
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
CSC_LINK: ${{ secrets.MAC_CERT_P12_BASE64 }}
|
|
CSC_KEY_PASSWORD: ${{ secrets.MAC_CERT_P12_PASSWORD }}
|
|
WIN_CSC_LINK: ${{ secrets.WIN_CERT_P12_BASE64 }}
|
|
WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CERT_P12_PASSWORD }}
|
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
|
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
|
|
|
jobs:
|
|
build-ubuntu:
|
|
name: Build Ubuntu
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build
|
|
uses: ./.github/actions/build
|
|
with:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
|
|
build-macos:
|
|
name: Build macOS
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build
|
|
uses: ./.github/actions/build
|
|
with:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
|
|
upload-release:
|
|
name: Upload and Create Release
|
|
needs:
|
|
- build-ubuntu
|
|
- build-macos
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Download all artifacts
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
path: ./artifacts
|
|
|
|
- name: List downloaded artifacts
|
|
run: ls -R ./artifacts
|
|
|
|
- name: Create GitHub Release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
name: Release ${{ github.ref_name }}
|
|
tag_name: ${{ github.ref }}
|
|
files: |
|
|
artifacts/**/*.dmg
|
|
artifacts/**/*.snap
|
|
artifacts/**/*.AppImage
|
|
artifacts/**/*.deb
|
|
artifacts/**/*.pacman
|
|
artifacts/**/*.exe
|
|
artifacts/**/*.png
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |