From 3f0d974770d8838b9fabb0e4611d74b2c2df0896 Mon Sep 17 00:00:00 2001 From: Emanuels Zaurins Date: Wed, 10 Sep 2025 10:32:04 +0200 Subject: [PATCH 1/4] added deploy --- .github/workflows/deploy.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..a9da6b3 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,19 @@ +name: "Deploy" + +on: + pull_request: + types: closed + +jobs: + deploy: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + name: "Deploy on Netlify" + steps: + - uses: actions/checkout@v4 + - uses: jsmrcaga/action-netlify-deploy@master + with: + NETLIFY_AUTH_TOKEN: ${{ secrets.MY_AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.MY_SITE_ID }} + NETLIFY_DEPLOY_TO_PROD: true + build_directory: dist/cool-paletas-fef58f/browser \ No newline at end of file From 9fd3e6dc91c8f799e5bcc282927abd59af51e216 Mon Sep 17 00:00:00 2001 From: Emanuels Zaurins Date: Wed, 10 Sep 2025 10:32:52 +0200 Subject: [PATCH 2/4] updated deploy --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a9da6b3..dda1480 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,4 +16,4 @@ jobs: NETLIFY_AUTH_TOKEN: ${{ secrets.MY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.MY_SITE_ID }} NETLIFY_DEPLOY_TO_PROD: true - build_directory: dist/cool-paletas-fef58f/browser \ No newline at end of file + build_directory: dist/hello-ci-cd/browser \ No newline at end of file From 7a703e36a9fa4d49901ac531fcdafaec47848945 Mon Sep 17 00:00:00 2001 From: Emanuels Zaurins Date: Wed, 10 Sep 2025 10:33:16 +0200 Subject: [PATCH 3/4] updated deploy again --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index dda1480..7e51774 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v4 - uses: jsmrcaga/action-netlify-deploy@master with: - NETLIFY_AUTH_TOKEN: ${{ secrets.MY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.MY_SITE_ID }} + NETLIFY_AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.CLIENT_ID }} NETLIFY_DEPLOY_TO_PROD: true build_directory: dist/hello-ci-cd/browser \ No newline at end of file From 6fab43e45f56d8a172861cd2b6cede9e4e8c7c70 Mon Sep 17 00:00:00 2001 From: Emanuels Zaurins Date: Wed, 10 Sep 2025 10:34:14 +0200 Subject: [PATCH 4/4] test to commit to branch --- 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..0794064 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,4 +1,4 @@

Hello

-

From {{ domain }}

+

From {{ domain }} Branch merge worked