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

72 lines
1.7 KiB
YAML
Raw Normal View History

2023-09-16 18:03:01 +02:00
name: release-assets
on:
push:
tags:
- v*.*.*
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
arch: [arm64, amd64]
- os: macos-latest
arch: [arm64, amd64]
- os: windows-latest
arch: [arm64, amd64]
steps:
- name: Check out Git repository
2024-04-11 16:04:19 +02:00
uses: actions/checkout@v4
- name: Install Node.js
2024-04-11 16:04:19 +02:00
uses: actions/setup-node@v4
with:
2024-05-26 16:26:53 +02:00
node-version: 20
- 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
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
2023-09-16 18:03:01 +02: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
2024-04-11 16:04:19 +02:00
uses: softprops/action-gh-release@v2
with:
draft: true
prerelease: true
2023-10-20 19:43:47 +02:00
fail_on_unmatched_files: false
files: |
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
dist-release/latest.yml
dist-release/latest-mac.yml
dist-release/latest-linux.yml
dist-release/latest-linux-arm64.yml
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}