Skip to content

Commit cf94b87

Browse files
committed
[ci] CI HELL
1 parent 2c73016 commit cf94b87

File tree

3 files changed

+18
-44
lines changed

3 files changed

+18
-44
lines changed

.github/workflows/ci-exhaustive.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: CI (exhaustive)
2-
on:
3-
push:
4-
tags:
5-
- 'deploy/[0-9]+.[0-9]+.[0-9]+'
2+
on: workflow_dispatch
63
jobs:
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 }}

.github/workflows/post-publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: Post-Publish
22
on:
33
release:
4-
types: published
4+
types: [created]
55
jobs:
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
@@ -24,7 +24,7 @@ jobs:
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
@@ -37,7 +37,7 @@ jobs:
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
@@ -59,7 +59,7 @@ jobs:
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
@@ -72,7 +72,7 @@ jobs:
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

.github/workflows/publish.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Publish
22
on:
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
68
jobs:
79
lint:
810
runs-on: macos-latest
@@ -33,7 +35,7 @@ jobs:
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 }}

0 commit comments

Comments
 (0)