Skip to content

Commit 39595d6

Browse files
authored
ci: Fix assets not building and attached to GitHub release (#1691)
1 parent 96fb3ad commit 39595d6

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/workflows/release-automated.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
sudo gem install bundler
3535
bundle config set path 'vendor/bundle'
3636
bundle install
37+
carthage bootstrap --use-xcframeworks
3738
- run: npm ci
3839
- run: npx semantic-release
3940
env:
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: release-manual-assets
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
tag:
6+
default: ''
7+
description: 'Version tag:'
8+
env:
9+
CI_XCODE_11: '/Applications/Xcode_11.7.app/Contents/Developer'
10+
11+
jobs:
12+
assets:
13+
if: github.event.inputs.tag != ''
14+
runs-on: macos-11
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v2
18+
with:
19+
ref: ${{ github.event.inputs.tag }}
20+
- name: Cache Gems
21+
id: cache-gems
22+
uses: actions/cache@v2
23+
with:
24+
path: vendor/bundle
25+
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
26+
restore-keys: |
27+
${{ runner.os }}-gem-
28+
- name: Submodules and Bundle Install
29+
run: |
30+
git submodule update --init --recursive
31+
sudo gem install bundler
32+
bundle config set path 'vendor/bundle'
33+
bundle install
34+
carthage bootstrap --use-xcframeworks
35+
- name: Build Release
36+
run: set -o pipefail && env NSUnbufferedIO=YES bundle exec rake package:release
37+
env:
38+
DEVELOPER_DIR: ${{ env.CI_XCODE_11 }}
39+
- name: Deploy assets
40+
uses: svenstaro/upload-release-action@v2
41+
with:
42+
repo_token: ${{ secrets.GITHUB_TOKEN }}
43+
file: build/release/*
44+
tag: ${{ github.event.inputs.tag }}
45+
overwrite: true
46+
file_glob: true

0 commit comments

Comments
 (0)