escrcpy/.github/workflows/release-assets.yml

64 lines
1.3 KiB
YAML
Raw Normal View History

2023-09-17 00:03:01 +08:00
name: release-assets
on:
push:
tags:
- v*.*.*
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
2023-09-17 00:03:01 +08:00
os: [windows-latest]
# os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Dependencies
run: npm install
2023-09-17 00:03:01 +08:00
- name: build-linux
if: matrix.os == 'ubuntu-latest'
run: npm run build:linux
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
2023-09-17 00:03:01 +08:00
- name: build-mac
if: matrix.os == 'macos-latest'
run: npm run build:mac
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: build-win
if: matrix.os == 'windows-latest'
run: npm run build:win
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: release
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
dist/*.exe
dist/*.zip
dist/*.dmg
dist/*.AppImage
dist/*.snap
dist/*.deb
dist/*.rpm
dist/*.tar.gz
dist/*.yml
dist/*.blockmap
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}