From b73f1c54fbae32ca4b235375bd4e39b724b91be8 Mon Sep 17 00:00:00 2001 From: Mathias Handeland <127216029+MathiasHandeland@users.noreply.github.com> Date: Thu, 11 Sep 2025 08:38:07 +0200 Subject: [PATCH 1/3] build --- .github/workflows/main.yml | 18 ++++++++++++++++++ angular.json | 3 +++ 2 files changed, 21 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..dcc8be5 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,18 @@ +name: Trigger Netlify Build +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + name: "Deploy to Netlify" + steps: + - uses: actions/checkout@v3 + - uses: jsmrcaga/action-netlify-deploy@v2.4.0 + with: + NETLIFY_AUTH_TOKEN: ${{ secrets.EXERCISE_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.SITE_ID }} + NETLIFY_DEPLOY_TO_PROD: true + build_directory: dist/hello-ci-cd/browser diff --git a/angular.json b/angular.json index e34620a..b8e72eb 100644 --- a/angular.json +++ b/angular.json @@ -91,5 +91,8 @@ } } } + }, + "cli": { + "analytics": false } } From 96fead202767bb53478eb9b911e2a54f9934896e Mon Sep 17 00:00:00 2001 From: Mathias Handeland <127216029+MathiasHandeland@users.noreply.github.com> Date: Thu, 11 Sep 2025 08:39:28 +0200 Subject: [PATCH 2/3] edit h1 --- src/app/app.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/app.component.html b/src/app/app.component.html index de43290..cf73a65 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,4 +1,4 @@
-

Hello

+

CI/CD Exercise

From {{ domain }}

From 2c2b8eaef6169760b98ded8773b69ba6099412c5 Mon Sep 17 00:00:00 2001 From: Mathias Handeland <127216029+MathiasHandeland@users.noreply.github.com> Date: Thu, 11 Sep 2025 08:41:25 +0200 Subject: [PATCH 3/3] Add site link to README --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 5950904..624e47f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +# MY SITE: +https://football-shirt-gallery.netlify.app/ + + + + # Angular CI/CD ## Learning objectives