Skip to content

chore(ci): remove v1 workflows #1617

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/on_release_notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ env:

on:
release:
# We can't filter by tag here, so we filter later on the first job
types: [published]

workflow_dispatch:
inputs:
version_to_publish:
description: "Version to be released in PyPi, Docs, and Lambda Layer, e.g. v1.26.4"
default: v1.26.4
default: v2.0.0
required: true
skip_pypi:
description: "Skip publishing to PyPi as it can't publish more than once. Useful for semi-failed releases"
Expand All @@ -45,6 +47,7 @@ on:

jobs:
release:
if: ${{ startsWith(github.ref, 'refs/tags/v2') }}
environment: release
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -121,6 +124,12 @@ jobs:
alias: latest
detached_mode: true

publish_layer:
needs: release
uses: ./.github/workflows/publish_v2_layer.yml
with:
latest_published_version: ${{ needs.release.outputs.RELEASE_VERSION }}

post_release:
needs: release
permissions:
Expand Down
86 changes: 0 additions & 86 deletions .github/workflows/publish_layer.yml

This file was deleted.

33 changes: 16 additions & 17 deletions .github/workflows/publish_v2_layer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ on:
latest_published_version:
description: "Latest PyPi published version to rebuild latest docs for, e.g. v2.0.0"
required: true
# workflow_run:
# workflows: ["Publish to PyPi"]
# types:
# - completed
workflow_call:
inputs:
latest_published_version:
type: string
description: "Latest PyPi published version to rebuild latest docs for, e.g. v2.0.0"
required: true

jobs:
build-layer:
runs-on: ubuntu-latest
if: ${{ (github.event.workflow_run.conclusion == 'success') || (github.event_name == 'workflow_dispatch') }}
defaults:
run:
working-directory: ./layer
Expand Down Expand Up @@ -74,8 +75,7 @@ jobs:
path: layer/cdk.out.zip

deploy-beta:
needs:
- build-layer
needs: build-layer
uses: ./.github/workflows/reusable_deploy_v2_layer_stack.yml
secrets: inherit
with:
Expand All @@ -84,16 +84,15 @@ jobs:
environment: "layer-beta"
latest_published_version: ${{ inputs.latest_published_version }}

# deploy-prod:
# needs:
# - deploy-beta
# uses: ./.github/workflows/reusable_deploy_layer_stack.yml
# secrets: inherit
# with:
# stage: "PROD"
# artefact-name: "cdk-layer-artefact"
# environment: "layer-prod"
# latest_published_version: ${{ inputs.latest_published_version }}
deploy-prod:
needs: deploy-beta
uses: ./.github/workflows/reusable_deploy_v2_layer_stack.yml
secrets: inherit
with:
stage: "PROD"
artefact-name: "cdk-layer-artefact"
environment: "layer-prod"
latest_published_version: ${{ inputs.latest_published_version }}

deploy-sar-beta:
needs: build-layer
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rebuild_latest_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:
workflow_dispatch:
inputs:
latest_published_version:
description: "Latest PyPi published version to rebuild latest docs for, e.g. v1.26.7"
default: "v1.28.0"
description: "Latest PyPi published version to rebuild latest docs for, e.g. v2.0.0"
default: "v2.0.0"
required: true

jobs:
Expand Down
99 changes: 0 additions & 99 deletions .github/workflows/reusable_deploy_layer_stack.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/reusable_update_v2_layer_arn_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions:
contents: write

env:
BRANCH: v2
BRANCH: develop

jobs:
publish_v2_layer_arn:
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/v2_on_push_docs.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/v2_rebuild_latest_docs.yml

This file was deleted.