Skip to content

Commit f18a260

Browse files
committed
Run release build on republication
1 parent 470bb10 commit f18a260

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: Release
22

33
on:
44
release:
5-
types:
6-
- created
5+
types: [ created, published ]
76

87
env:
98
DEVELOPER_DIR: /Applications/Xcode_11.4.app/Contents/Developer
@@ -41,6 +40,13 @@ jobs:
4140
name: rswift-${{ github.event.release.upload_url }}
4241
path: .build/release/rswift
4342

43+
publish-to-cocoapods:
44+
if: github.event_name == 'release' && github.event.action == 'created'
45+
needs: release-build
46+
runs-on: macos-latest
47+
steps:
48+
- name: Checkout
49+
uses: actions/checkout@v2
4450
- name: Publish to Cocoapods
4551
run: |
4652
export POD_VERSION=$(echo $TAG_NAME | cut -c2-)

0 commit comments

Comments
 (0)