forked from microsoft/plcrashreporter
-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (40 loc) · 1.41 KB
/
deploy.yml
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
name: Release
on:
push:
tags: '[0-9]+.[0-9]+.[0-9]+*'
jobs:
build-frameworks:
runs-on: macos-latest
steps:
- name: Build frameworks
run: sh Scripts/build_frameworks.sh
env:
BACKTRACE_VERSION: ${{ github.ref_name }}
- name: Tar Dylib XCFramework
run: tar -cvzf Archive_Dylib_XCFrameworks_${{ github.ref_name }}.tar.gz Runs/frameworks/dylib/
- name: Tar Static XCFramework
run: tar -cvzf Archive_Static_XCFrameworks_${{ github.ref_name }}.tar.gz Runs/frameworks/static/
- uses: actions/upload-artifact@v4
with:
name: Archive_Dylib_XCFrameworks_${{ github.ref_name }}
path: Archive_Dylib_XCFrameworks_${{ github.ref_name }}.tar.gz
- uses: actions/upload-artifact@v4
with:
name: Archive_Static_XCFrameworks_${{ github.ref_name }}
path: Archive_Static_XCFrameworks_${{ github.ref_name }}.tar.gz
upload-xcframeworks:
runs-on: ubuntu-latest
needs: build-frameworks
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
id: download
with:
path: artifacts/
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: ${{ steps.download.outputs.download-path }}
draft: true
verbose: env.ACTIONS_STEP_DEBUG