File tree Expand file tree Collapse file tree 3 files changed +18
-44
lines changed
Expand file tree Collapse file tree 3 files changed +18
-44
lines changed Original file line number Diff line number Diff line change 11name : CI (exhaustive)
2- on :
3- push :
4- tags :
5- - ' deploy/[0-9]+.[0-9]+.[0-9]+'
2+ on : workflow_dispatch
63jobs :
74 auto-cancel :
85 runs-on : ubuntu-latest
@@ -165,22 +162,7 @@ jobs:
165162 - build-linux-swift-5
166163 - cocoapods-5-4
167164 steps :
168- - uses : jungwinter/split@v1
169- id : split
170- with :
171- seperator : ' /' # this is correct, the action is typo’d despite warning
172- msg : ${{ github.ref }}
173-
174165 - uses : actions/checkout@v2
175166 with :
176167 fetch-depth : 0 # zero means “all” (or push fails)
177168 token : ${{ secrets.JAZZY_PAT }} # or won’t trigger our workflow
178-
179- - name : Tag RC
180- run : |
181- git config user.name github-actions
182- git config user.email github-actions@github.com
183- git tag rc/$v --force
184- git push origin rc/$v --force
185- env :
186- v : ${{ steps.split.outputs._3 }}
Original file line number Diff line number Diff line change 11name : Post-Publish
22on :
33 release :
4- types : published
4+ types : [created]
55jobs :
66 pods :
77 runs-on : macos-latest
88 steps :
99
1010 - name : Start Deployment
11- uses : bobheadxi/deployments@v1
11+ uses : bobheadxi/deployments@v0.5.2
1212 id : deployment
1313 with :
1414 step : start
2424 COCOAPODS_TRUNK_TOKEN : ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
2525
2626 - name : Seal Deployment
27- uses : bobheadxi/deployments@v1
27+ uses : bobheadxi/deployments@v0.5.2
2828 if : always()
2929 with :
3030 step : finish
3737 steps :
3838
3939 - name : Start Deployment
40- uses : bobheadxi/deployments@v1
40+ uses : bobheadxi/deployments@v0.5.2
4141 id : deployment
4242 with :
4343 step : start
5959 GITHUB_TOKEN : ${{ github.token }}
6060
6161 - name : Seal Deployment
62- uses : bobheadxi/deployments@v1
62+ uses : bobheadxi/deployments@v0.5.2
6363 if : always()
6464 with :
6565 step : finish
7272 steps :
7373
7474 - name : Start Deployment
75- uses : bobheadxi/deployments@v1
75+ uses : bobheadxi/deployments@v0.5.2
7676 id : deployment
7777 with :
7878 step : start
@@ -95,11 +95,11 @@ jobs:
9595 - run : git config user.name Travis
9696 - run : git config user.email "jazzy@travis-ci.com"
9797 - run : git commit -m 'Updated docs for v${{ github.event.release.tag_name }}'
98- - run : git remote add secure-origin https://${{ JAZZY_PAT }}@github.com/mxcl/PromiseKit.git
98+ - run : git remote add secure-origin https://${{ secrets. JAZZY_PAT }}@github.com/mxcl/PromiseKit.git
9999 - run : git push secure-origin gh-pages
100100
101101 - name : Seal Deployment
102- uses : bobheadxi/deployments@v1
102+ uses : bobheadxi/deployments@v0.5.2
103103 if : always()
104104 with :
105105 step : finish
Original file line number Diff line number Diff line change 11name : Publish
22on :
3- push :
4- tags :
5- - ' rc/[0-9]+.[0-9]+.[0-9]+'
3+ workflow_dispatch :
4+ inputs :
5+ version :
6+ description : Version to publish
7+ required : true
68jobs :
79 lint :
810 runs-on : macos-latest
3335 ruby -i -pe "sub(/CURRENT_PROJECT_VERSION = [0-9.]+/, 'CURRENT_PROJECT_VERSION = $v')" PromiseKit.xcodeproj/project.pbxproj
3436 ruby -i -pe "sub(/s.version = '[0-9.]+'/, 's.version = \"$v\"')" PromiseKit.podspec
3537 env :
36- v : ${{ steps.split.outputs._3 }}
38+ v : ${{ github.event.inputs.version }}
3739 - run : |
3840 ! (git diff --quiet)
3941 - run : |
@@ -42,22 +44,12 @@ jobs:
4244 git commit -am "PromiseKit $v"
4345 git push
4446 env:
45- v: ${{ steps.split.outputs._3 }}
47+ v: ${{ github.event.inputs.version }}
4648
4749 - uses : softprops/action-gh-release@v1
4850 id : release
4951 env :
5052 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5153 with :
52- tag_name : ${{ steps.split.outputs._3 }}
53- name : ${{ steps.split.outputs._3 }}
54-
55- tidy :
56- runs-on : ubuntu-latest
57- needs : create-release
58- steps :
59- - uses : actions/checkout@v2
60- with :
61- depth : 0
62- - run : git push origin :deploy/${{ github.event.release.tag_name }}
63- - run : git push origin :rc/${{ github.event.release.tag_name }}
54+ tag_name : ${{ github.event.inputs.version }}
55+ name : ${{ github.event.inputs.version }}
You can’t perform that action at this time.
0 commit comments