Skip to content

Commit 553c9e3

Browse files
committed
Fix Podspec version issue w/GH Action setup
1 parent fe64b59 commit 553c9e3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ jobs:
2929
with:
3030
upload_url: ${{ github.event.release.upload_url }}
3131
asset_path: ${{ runner.temp }}/archive.zip
32-
asset_name: rswift-${{ github.ref }}.zip
32+
asset_name: rswift-${{ github.event.release.tag_name }}.zip
3333
asset_content_type: application/zip
3434
- name: Publish to Cocoapods
35-
run: pod trunk push
35+
run: |
36+
POD_VERSION=$(echo $TAG_NAME | cut -c2-)
37+
pod trunk push
3638
env:
37-
POD_VERSION: ${{ github.event.release.tag_name }}
39+
TAG_NAME: ${{ github.event.release.tag_name }}
3840
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
3941

4042
- name: Store artifact

R.swift.podspec

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

33
spec.name = "R.swift"
4-
spec.version = ENV['POD_VERSION'].slice!(0)
4+
spec.version = ENV['POD_VERSION']
55
spec.license = "MIT"
66

77
spec.summary = "Get strong typed, autocompleted resources like images, fonts and segues in Swift projects"

0 commit comments

Comments
 (0)