Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Commit ae47cf3

Browse files
committed
Add Github Action for releases
1 parent 426e902 commit ae47cf3

File tree

5 files changed

+19
-363
lines changed

5 files changed

+19
-363
lines changed

.github/workflows/release.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: created
6+
7+
env:
8+
DEVELOPER_DIR: /Applications/Xcode_11.4.app/Contents/Developer
9+
10+
jobs:
11+
publish:
12+
- name: Publish to Cocoapods
13+
run: |
14+
export POD_VERSION=$(echo $TAG_NAME | cut -c2-)
15+
pod trunk push
16+
env:
17+
TAG_NAME: ${{ github.event.release.tag_name }}
18+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

R.swift.Library.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |spec|
22

33
spec.name = "R.swift.Library"
4-
spec.version = "5.2.0"
4+
spec.version = ENV['POD_VERSION']
55
spec.license = "MIT"
66

77
spec.summary = "Companion library for R.swift, featuring types used to type resources"

fastlane/Fastfile

-98
This file was deleted.

fastlane/actions/af_create_github_release.rb

-157
This file was deleted.

fastlane/actions/version_get_podspec.rb

-107
This file was deleted.

0 commit comments

Comments
 (0)