Skip to content

Commit 0de011c

Browse files
committed
updated github actions generation
1 parent 7dc75c6 commit 0de011c

File tree

5 files changed

+21
-7
lines changed

5 files changed

+21
-7
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## [1.2.5] - 2023-10-05
5+
6+
### Added
7+
8+
### Changed
9+
10+
### Fixed
11+
12+
- Fixed bug with generating .github/workflows directories
13+
414
## [1.2.4] - 2023-10-03
515

616
### Added

google_cloud_automlops/AutoMLOps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
GENERATED_GITHUB_ACTIONS_FILE,
3939
GENERATED_DEFAULTS_FILE,
4040
GENERATED_DIRS,
41+
GENERATED_GITHUB_DIRS,
4142
GENERATED_RESOURCES_SH_FILE,
4243
GENERATED_SERVICES_DIRS,
4344
GENERATED_TERRAFORM_DIRS,
44-
GITHUB_DIR,
4545
OUTPUT_DIR
4646
)
4747
from google_cloud_automlops.utils.utils import (
@@ -278,7 +278,7 @@ def generate(
278278
if provisioning_framework == Provisioner.TERRAFORM.value:
279279
make_dirs(GENERATED_TERRAFORM_DIRS)
280280
if deployment_framework == Deployer.GITHUB_ACTIONS.value:
281-
make_dirs(GITHUB_DIR)
281+
make_dirs(GENERATED_GITHUB_DIRS)
282282

283283
# Set derived vars if none were given for certain variables
284284
derived_artifact_repo_name = f'{naming_prefix}-artifact-registry' if artifact_repo_name is None else artifact_repo_name

google_cloud_automlops/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
series of directories to support the creation of Vertex Pipelines.
2424
"""
2525
# pylint: disable=invalid-name
26-
__version__ = '1.2.4'
26+
__version__ = '1.2.5'
2727
__author__ = 'Sean Rastatter'
2828
__credits__ = 'Google'

google_cloud_automlops/utils/constants.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858

5959
# AutoMLOps file paths
6060
BASE_DIR = 'AutoMLOps/'
61-
GITHUB_DIR = BASE_DIR + '.github/workflows/'
6261
GENERATED_DEFAULTS_FILE = BASE_DIR + 'configs/defaults.yaml'
6362
GENERATED_PIPELINE_SPEC_SH_FILE = BASE_DIR + 'scripts/build_pipeline_spec.sh'
6463
GENERATED_BUILD_COMPONENTS_SH_FILE = BASE_DIR + 'scripts/build_components.sh'
@@ -67,7 +66,7 @@
6766
GENERATED_RESOURCES_SH_FILE = BASE_DIR + 'provision/provision_resources.sh'
6867
GENERATED_PUBLISH_TO_TOPIC_FILE = BASE_DIR + 'scripts/publish_to_topic.sh'
6968
GENERATED_CLOUDBUILD_FILE = BASE_DIR + 'cloudbuild.yaml'
70-
GENERATED_GITHUB_ACTIONS_FILE = GITHUB_DIR + 'github_actions.yaml'
69+
GENERATED_GITHUB_ACTIONS_FILE = BASE_DIR + '.github/workflows/github_actions.yaml'
7170
GENERATED_PIPELINE_REQUIREMENTS_FILE = BASE_DIR + 'pipelines/requirements.txt'
7271
GENERATED_PIPELINE_FILE = BASE_DIR + 'pipelines/pipeline.py'
7372
GENERATED_PIPELINE_RUNNER_FILE = BASE_DIR + 'pipelines/pipeline_runner.py'
@@ -97,7 +96,12 @@
9796

9897
GENERATED_TERRAFORM_DIRS = [
9998
BASE_DIR + 'provision/state_bucket',
100-
BASE_DIR + 'provision/environment',
99+
BASE_DIR + 'provision/environment'
100+
]
101+
102+
GENERATED_GITHUB_DIRS = [
103+
BASE_DIR + '.github',
104+
BASE_DIR + '.github/workflows'
101105
]
102106

103107
# temporary files

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
setup(
2222
name='google-cloud-automlops',
23-
version='1.2.4',
23+
version='1.2.5',
2424
description='Build MLOps Pipelines in Minutes.',
2525
long_description=readme_contents,
2626
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)