File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,13 @@ jobs:
48
48
-scheme PusherSwift \
49
49
build \
50
50
| xcpretty --color
51
+ outputs :
52
+ tag : ${{ needs.check-release-tag.outputs.tag }}
51
53
52
54
publish-cocoapods :
53
55
runs-on : ubuntu-latest
54
56
needs : build
57
+ if : ${{ needs.build.outputs.tag }}
55
58
steps :
56
59
- uses : actions/checkout@v2
57
60
- uses : ruby/setup-ruby@v1
@@ -60,23 +63,25 @@ jobs:
60
63
- run : |
61
64
gem install cocoapods
62
65
63
- git tag -a ${{ needs.check-release-tag .outputs.tag }} -m "${{ needs.check-release-tag .outputs.tag }}"
64
- git push origin ${{ needs.check-release-tag .outputs.tag }}
66
+ git tag -a ${{ needs.build .outputs.tag }} -m "${{ needs.build .outputs.tag }}"
67
+ git push origin ${{ needs.build .outputs.tag }}
65
68
66
69
pod trunk push PusherSwift.podspec
67
70
pod trunk push PusherSwiftWithEncryption.podspec
68
71
env:
69
72
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TOKEN }}
73
+ outputs :
74
+ release_version : ${{ ${{ needs.build.outputs.tag }} }}
70
75
71
76
create-github-release :
72
77
runs-on : ubuntu-latest
73
78
needs : publish-cocoapods
74
- if : ${{ needs.check-release-tag .outputs.tag }}
79
+ if : ${{ needs.publish-cocoapods .outputs.release_version }}
75
80
steps :
76
81
- uses : actions/checkout@v2
77
82
- name : Prepare tag
78
83
run : |
79
- export TAG=${{ needs.check-release-tag .outputs.tag }}
84
+ export TAG=${{ needs.publish-cocoapods .outputs.release_version }}
80
85
echo "TAG=$TAG" >> $GITHUB_ENV
81
86
- name : Setup git
82
87
run : |
You can’t perform that action at this time.
0 commit comments