-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 1.12 KB
/
release.yaml
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
name: Release
on:
push:
tags:
- '\d+\.\d+\.\d+' # Push to versioned tags, i.e. 5.0.11
jobs:
release:
runs-on: macos-12
steps:
- name: Checkout this repo
uses: actions/checkout@v2
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Archive
run: zip -r ROX.xcframework.zip ROX.xcframework ROXCore.xcframework
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.vars.outputs.tag }}
release_name: ${{ steps.vars.outputs.tag }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ROX.xcframework.zip
asset_name: ROX.xcframework.zip
asset_content_type: application/zip