Skip to content

Commit 629aa7f

Browse files
committed
Add auto publish CI config
1 parent 821e8ed commit 629aa7f

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
publish:
7+
name: Publish
8+
runs-on: macOS-11.0
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
with:
13+
ref: ${{ github.ref }}
14+
15+
- name: Validation
16+
run: true && [ "${GITHUB_REF##*/}" = "$(cat .version)" ]
17+
18+
- name: Get ruby gem cache
19+
id: gem-cache
20+
uses: actions/cache@v2
21+
with:
22+
path: vendor/bundle
23+
key: ${{ runner.os }}-1-gem-${{ hashFiles('Gemfile.lock') }}
24+
restore-keys: ${{ runner.os }}-1-gem-
25+
26+
- name: Install ruby gems
27+
if: steps.gem-cache.cache.outputs.cache-hit != 'true'
28+
run: make gem
29+
30+
- name: CocoaPods trunk push
31+
run: make pod-release
32+
env:
33+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

0 commit comments

Comments
 (0)