Skip to content

Commit 4bba49c

Browse files
authored
chore(ci): remove v1 workflows (#1617)
1 parent feca650 commit 4bba49c

8 files changed

+29
-256
lines changed

.github/workflows/on_release_notes.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ env:
2525

2626
on:
2727
release:
28+
# We can't filter by tag here, so we filter later on the first job
2829
types: [published]
30+
2931
workflow_dispatch:
3032
inputs:
3133
version_to_publish:
3234
description: "Version to be released in PyPi, Docs, and Lambda Layer, e.g. v1.26.4"
33-
default: v1.26.4
35+
default: v2.0.0
3436
required: true
3537
skip_pypi:
3638
description: "Skip publishing to PyPi as it can't publish more than once. Useful for semi-failed releases"
@@ -45,6 +47,7 @@ on:
4547

4648
jobs:
4749
release:
50+
if: ${{ startsWith(github.ref, 'refs/tags/v2') }}
4851
environment: release
4952
runs-on: ubuntu-latest
5053
permissions:
@@ -121,6 +124,12 @@ jobs:
121124
alias: latest
122125
detached_mode: true
123126

127+
publish_layer:
128+
needs: release
129+
uses: ./.github/workflows/publish_v2_layer.yml
130+
with:
131+
latest_published_version: ${{ needs.release.outputs.RELEASE_VERSION }}
132+
124133
post_release:
125134
needs: release
126135
permissions:

.github/workflows/publish_layer.yml

-86
This file was deleted.

.github/workflows/publish_v2_layer.yml

+16-17
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ on:
1010
latest_published_version:
1111
description: "Latest PyPi published version to rebuild latest docs for, e.g. v2.0.0"
1212
required: true
13-
# workflow_run:
14-
# workflows: ["Publish to PyPi"]
15-
# types:
16-
# - completed
13+
workflow_call:
14+
inputs:
15+
latest_published_version:
16+
type: string
17+
description: "Latest PyPi published version to rebuild latest docs for, e.g. v2.0.0"
18+
required: true
1719

1820
jobs:
1921
build-layer:
2022
runs-on: ubuntu-latest
21-
if: ${{ (github.event.workflow_run.conclusion == 'success') || (github.event_name == 'workflow_dispatch') }}
2223
defaults:
2324
run:
2425
working-directory: ./layer
@@ -74,8 +75,7 @@ jobs:
7475
path: layer/cdk.out.zip
7576

7677
deploy-beta:
77-
needs:
78-
- build-layer
78+
needs: build-layer
7979
uses: ./.github/workflows/reusable_deploy_v2_layer_stack.yml
8080
secrets: inherit
8181
with:
@@ -84,16 +84,15 @@ jobs:
8484
environment: "layer-beta"
8585
latest_published_version: ${{ inputs.latest_published_version }}
8686

87-
# deploy-prod:
88-
# needs:
89-
# - deploy-beta
90-
# uses: ./.github/workflows/reusable_deploy_layer_stack.yml
91-
# secrets: inherit
92-
# with:
93-
# stage: "PROD"
94-
# artefact-name: "cdk-layer-artefact"
95-
# environment: "layer-prod"
96-
# latest_published_version: ${{ inputs.latest_published_version }}
87+
deploy-prod:
88+
needs: deploy-beta
89+
uses: ./.github/workflows/reusable_deploy_v2_layer_stack.yml
90+
secrets: inherit
91+
with:
92+
stage: "PROD"
93+
artefact-name: "cdk-layer-artefact"
94+
environment: "layer-prod"
95+
latest_published_version: ${{ inputs.latest_published_version }}
9796

9897
deploy-sar-beta:
9998
needs: build-layer

.github/workflows/rebuild_latest_docs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
1010
workflow_dispatch:
1111
inputs:
1212
latest_published_version:
13-
description: "Latest PyPi published version to rebuild latest docs for, e.g. v1.26.7"
14-
default: "v1.28.0"
13+
description: "Latest PyPi published version to rebuild latest docs for, e.g. v2.0.0"
14+
default: "v2.0.0"
1515
required: true
1616

1717
jobs:

.github/workflows/reusable_deploy_layer_stack.yml

-99
This file was deleted.

.github/workflows/reusable_update_v2_layer_arn_docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
contents: write
1313

1414
env:
15-
BRANCH: v2
15+
BRANCH: develop
1616

1717
jobs:
1818
publish_v2_layer_arn:

.github/workflows/v2_on_push_docs.yml

-36
This file was deleted.

.github/workflows/v2_rebuild_latest_docs.yml

-14
This file was deleted.

0 commit comments

Comments
 (0)