From 7bfd6c2b34f7172bb1bada95533959dfdcaa6011 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 10 Sep 2025 12:05:11 +0200 Subject: [PATCH 1/4] Test --- .github/workflows/deploy.yml | 31 +++++++++++++++++++++++++++++++ src/app/app.component.html | 4 ++-- 2 files changed, 33 insertions(+), 2 deletions(-) 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..97eae81 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,31 @@ +name: Deploy Angular app to Netlify + +on: + push: + branches: + - main + +jobs: + build-deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + + - name: Install dependencies + run: npm install + + - name: Build Angular + run: npm run build --prod + + - name: Deploy to Netlify + run: npx netlify-cli deploy --dir=dist/hello-ci-cd --prod --auth=$NETLIFY_AUTH_TOKEN --site=$NETLIFY_SITE_ID + env: + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} diff --git a/src/app/app.component.html b/src/app/app.component.html index de43290..0666914 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,4 +1,4 @@
-

Hello

+

Hello Test

From {{ domain }}

-
+ \ No newline at end of file From a1488a8094e256e6b2e17116d4b27bd4c7f9283b Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 10 Sep 2025 12:11:37 +0200 Subject: [PATCH 2/4] redirect --- src/app/src/_redirects | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/app/src/_redirects diff --git a/src/app/src/_redirects b/src/app/src/_redirects new file mode 100644 index 0000000..7797f7c --- /dev/null +++ b/src/app/src/_redirects @@ -0,0 +1 @@ +/* /index.html 200 From 0cf18cf941d5ad9c87827cf5efb82de1e72453fa Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 10 Sep 2025 12:15:22 +0200 Subject: [PATCH 3/4] mapping --- src/{app/src => }/_redirects | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/{app/src => }/_redirects (100%) diff --git a/src/app/src/_redirects b/src/_redirects similarity index 100% rename from src/app/src/_redirects rename to src/_redirects From 58b73f7d42d770a241adf49c16e580efb8d31225 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 10 Sep 2025 12:22:50 +0200 Subject: [PATCH 4/4] delete redirect --- src/_redirects | 1 - 1 file changed, 1 deletion(-) delete mode 100644 src/_redirects diff --git a/src/_redirects b/src/_redirects deleted file mode 100644 index 7797f7c..0000000 --- a/src/_redirects +++ /dev/null @@ -1 +0,0 @@ -/* /index.html 200